pytype
pytype copied to clipboard
A static type analyzer for Python code
We are using python3.11 on a RHEL9 instance with FIPS enabled. pytype is failing with `_hashlib.UnsupportedDigestmodError: [digital envelope routines] unsupported` Can a FIPS compliant hash function be used here? https://github.com/google/pytype/blob/97d949161b27259af283fc1d271f8cf056ddf9b6/pytype/pyi/parser.py#L783...
Consider the following file ```python b = 1 lam = lambda: b ``` This passes pytype without problems. However, adding an extra while loop at the end: ```python b =...
See https://github.com/python/typeshed/pull/12991/files#diff-75dfb84f0ad6ea28f6880f12c95f276b475cd3f908f0efaaee59217a16de05a3L57-R60 Permalink: https://github.com/Avasam/typeshed/blob/063be1660a9589c1c07fb6e96af275c822d42789/stubs/setuptools/setuptools/__init__.pyi#L58-L59 Replacing ```py from .discovery import _Finder find_packages = _Finder.find find_namespace_packages = _Finder.find ``` With ```py from .discovery import PackageFinder, PEP420PackageFinder find_packages = PackageFinder.find find_namespace_packages = PEP420PackageFinder.find...
The following import statement triggers a pyi error in pytype: ``` from tqdm.notebook import IProgress ``` To reproduce: python-3.9.15 tqdm==4.67.0 pytype==2024.9.13 Test file is `foo.py`: ``` from tqdm.notebook import IProgress...
Bumps the github-actions group with 2 updates in the / directory: [actions/checkout](https://github.com/actions/checkout) and [actions/setup-python](https://github.com/actions/setup-python). Updates `actions/checkout` from 4 to 5 Release notes Sourced from actions/checkout's releases. v5.0.0 What's Changed Update...
Added generalized signature matching This is necessary to properly support callback protocols. Note that the implementation does not currently support typing.ParamSpec. This will be added in a follow up.
**What’s happening?** We are making Python 3.12 the last supported version for Pytype. We plan to push bugfixes to this repository when needed, but we are not making any more...