| commit | 57aae6249dd3c068a7068fd11e7d67379a544acf | [log] [tgz] |
|---|---|---|
| author | Maxim Martynov <martinov_m_s_@mail.ru> | Wed May 24 13:42:58 2023 +0300 |
| committer | GitHub <noreply@github.com> | Wed May 24 12:42:58 2023 +0200 |
| tree | 3d80436ed1da63881e2d7ff8a4342578befc7184 | |
| parent | f62fa3f37ce1949e8a536691b30c59c4889445eb [diff] |
Fix isinstance check for Generic classes on Python 3.7 (#188)
The typing_extensions module serves two related purposes:
typing.TypeGuard is new in Python 3.10, but typing_extensions allows users on previous Python versions to use it too.typing module.typing_extensions uses Semantic Versioning. The major version will be incremented only for backwards-incompatible changes. Therefore, it's safe to depend on typing_extensions like this: typing_extensions >=x.y, <(x+1), where x.y is the first version that includes all features you need.
typing_extensions supports Python versions 3.7 and higher.
See the documentation for a complete listing of module contents.
To run tests, navigate into the src/ directory and run test_typing_extensions.py.