Skip to content

Commit

Permalink
Add py.typed file to hopefully make the types accessible to users of …
Browse files Browse the repository at this point in the history
  • Loading branch information
UFO-101 committed Oct 18, 2024
1 parent a52bfac commit 2de33c2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
description="An implementation of transformers tailored for mechanistic interpretability."
license="MIT"
name="transformer-lens"
packages=[{include="transformer_lens"}]
packages=[{include="transformer_lens"}, {include="transformer_lens.py.typed"}]
readme="README.md"
# Version is automatically set by the pipeline on release
version="0.0.0"
Expand Down Expand Up @@ -129,10 +129,7 @@
# All rules apart from base are shown explicitly below
deprecateTypingAliases=true
disableBytesTypePromotions=true
exclude = [
"*/**/*.py",
"!/transformer_lens/hook_points.py"
]
exclude=["!/transformer_lens/hook_points.py", "*/**/*.py"]
reportAssertAlwaysTrue=true
reportConstantRedefinition=true
reportDeprecated=true
Expand Down Expand Up @@ -188,4 +185,3 @@
strictListInference=true
strictParameterNoneValue=true
strictSetInference=true

Empty file added transformer_lens/py.typed
Empty file.

0 comments on commit 2de33c2

Please sign in to comment.