Skip to content

Add better type hint support#11

Open
lopez86 wants to merge 2 commits intospgi-ci:masterfrom
lopez86:add_py_typed
Open

Add better type hint support#11
lopez86 wants to merge 2 commits intospgi-ci:masterfrom
lopez86:add_py_typed

Conversation

@lopez86
Copy link

@lopez86 lopez86 commented Dec 12, 2024

The package has type hints defined in most places, so this adds the py.typed file to allow mypy to use the type hints in projects using the package.

This also adds some code to ensure that a function using the lru_cache will still have type hints since the original code loses the type hints on the decorated function's parameters.

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