cdgriffith / puremagic

Pure python implementation of identifying files based off their magic numbers
MIT License
158 stars 34 forks source link

Type hints: `from __future__ import annotations` #77

Closed cclauss closed 3 months ago

cclauss commented 3 months ago

This allows Python 3.8 and 3.9 to use the streamlined type hint syntax of PEP 563 and PEP 649.

% ruff rule UP006 # https://docs.astral.sh/ruff/rules/non-pep585-annotation/ % ruff rule UP007 # https://docs.astral.sh/ruff/rules/non-pep604-annotation/