Oct-18-2023, 10:08 AM
The documentation for typing states:
Since you are using python 3.11, it has no effect and therefore should not be imported.
Quote:NOTE: in Python 3.5 and later, the typing module lives in the stdlib, and installing this package has NO EFFECT, because stdlib takes higher precedence than the installation directory. To get a newer version of the typing module in Python 3.5 or later, you have to upgrade to a newer Python (bugfix) version. For example, typing in Python 3.6.0 is missing the definition of ‘Type’ – upgrading to 3.6.2 will fix this.
Since you are using python 3.11, it has no effect and therefore should not be imported.