Skip to content

Drop support for older python versions#200

Open
lpetre wants to merge 3 commits intoh2non:masterfrom
lpetre:add_types
Open

Drop support for older python versions#200
lpetre wants to merge 3 commits intoh2non:masterfrom
lpetre:add_types

Conversation

@lpetre
Copy link
Copy Markdown

@lpetre lpetre commented Jan 10, 2026

This pull request modernizes the codebase by dropping Python 2 support and updating compatibility to Python 3.8 and above. It removes legacy code and updates CI and packaging metadata to reflect these changes. Additionally, it improves type safety in the Type class.

Python version support and compatibility:

  • Dropped support for Python 2 and older Python 3 versions (<=3.7) by removing all __future__.absolute_import imports and updating the minimum required Python version to 3.8 in both setup.py and .travis.yml. Also, added support for Python 3.12 and 3.13 in CI and packaging metadata. [1] [2]

Codebase modernization:

Type safety improvements:

  • Updated the Type class in filetype/types/base.py to use Python 3 type annotations for all methods and constructor arguments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant