Skip to content

Commit 2de33c2

Browse files
committed
Add py.typed file to hopefully make the types accessible to users of the library. See: https://blog.whtsky.me/tech/2021/dont-forget-py.typed-for-your-typed-python-package/
1 parent a52bfac commit 2de33c2

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

pyproject.toml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
description="An implementation of transformers tailored for mechanistic interpretability."
44
license="MIT"
55
name="transformer-lens"
6-
packages=[{include="transformer_lens"}]
6+
packages=[{include="transformer_lens"}, {include="transformer_lens.py.typed"}]
77
readme="README.md"
88
# Version is automatically set by the pipeline on release
99
version="0.0.0"
@@ -129,10 +129,7 @@
129129
# All rules apart from base are shown explicitly below
130130
deprecateTypingAliases=true
131131
disableBytesTypePromotions=true
132-
exclude = [
133-
"*/**/*.py",
134-
"!/transformer_lens/hook_points.py"
135-
]
132+
exclude=["!/transformer_lens/hook_points.py", "*/**/*.py"]
136133
reportAssertAlwaysTrue=true
137134
reportConstantRedefinition=true
138135
reportDeprecated=true
@@ -188,4 +185,3 @@
188185
strictListInference=true
189186
strictParameterNoneValue=true
190187
strictSetInference=true
191-

transformer_lens/py.typed

Whitespace-only changes.

0 commit comments

Comments
 (0)