You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The WindowsError builtin name only exist under Windows, so if we are analyzing a module that uses it under Linux it will erroneously marked as unbound.
A possible solution would be to use typeshed to parse the builtins instead of using the actual runtime values. EDIT: This would be too much time consuming… we would have to cache it globally and that probably not a good practice
Another solution would be to manually add the missing names. But it will need maintenance if new problematic builtin names are discovered.
The text was updated successfully, but these errors were encountered:
tristanlatr
changed the title
Some builtins are only available under Windows
Some builtins are only available under Windows or newer Python version
Jan 28, 2025
The aiter and anext are only available under Python 3.10+.
EncodingWarning as well, and PythonFinalizationError is for Python 3.13+. So the same kind of problem applies to Python version as well.
The WindowsError builtin name only exist under Windows, so if we are analyzing a module that uses it under Linux it will erroneously marked as unbound.
A possible solution would be to use typeshed to parse the builtins instead of using the actual runtime values. EDIT: This would be too much time consuming… we would have to cache it globally and that probably not a good practice
Another solution would be to manually add the missing names. But it will need maintenance if new problematic builtin names are discovered.
The text was updated successfully, but these errors were encountered: