Python union ‘|’ not working in typehints of user defined classes
I recently found out about typehints and have been trying to include them in my code. However, I am getting TypeErrors when I use them within functions in a class.
I recently found out about typehints and have been trying to include them in my code. However, I am getting TypeErrors when I use them within functions in a class.