Skip to content

Commit

Permalink
add py.typed file to enable type hints for package consumers (#579)
Browse files Browse the repository at this point in the history
* add py.typed file to enable type hints for package consumers

* fix lint issues
  • Loading branch information
gruebel committed Jul 18, 2022
1 parent 2fc0e31 commit f0cc7b8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Empty file added detect_secrets/py.typed
Empty file.
6 changes: 6 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ def get_version():
'requests',
],
include_package_data=True,
package_data={
'detect_secrets': [
'py.typed',
],
},
extras_require={
'word_list': [
'pyahocorasick',
Expand All @@ -58,5 +63,6 @@ def get_version():
'Environment :: Console',
'Operating System :: OS Independent',
'Development Status :: 5 - Production/Stable',
'Typing :: Typed',
],
)

0 comments on commit f0cc7b8

Please sign in to comment.