fix: Avoid import conflicts by renaming types.py to _types.py
Renaming `types.py` to `_types.py` to avoid conflicts with Python's built-in modules. This change addresses some `ImportErrors` such as: ``` ImportError: cannot import name 'MappingProxyType' from partially initialized module 'types' (most likely due to a circular import) ``` As far as I can tell this is not a problem when installing the library using pip or running tests in tox, only local execution when adding the source-root to the `PYTHONPATH`. This is e.g. the case in the default IntelliJ/Pycharm run configuration when testing in scratch files.
Showing
- mwclient/_types.py 0 additions, 0 deletionsmwclient/_types.py
- mwclient/client.py 1 addition, 1 deletionmwclient/client.py
- mwclient/image.py 1 addition, 1 deletionmwclient/image.py
- mwclient/listing.py 1 addition, 1 deletionmwclient/listing.py
- mwclient/page.py 1 addition, 1 deletionmwclient/page.py
Loading
Please register or sign in to comment