Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ endif
.PHONY: pytype
ifneq "$(pytype_path)" ""
pytype: ## Run pytype typechecker.
pytype --keep-going trycast.py tests.py
pytype --keep-going trycast/__init__.py tests.py
else
pytype:
endif
Expand Down
5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ classifiers = [ # https://pypi.org/classifiers/
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Software Development"
"Topic :: Software Development",
"Typing :: Typed"
]

[tool.poetry.urls]
Expand Down Expand Up @@ -53,7 +54,7 @@ build-backend = "poetry.core.masonry.api"
# Config Syntax Reference:
# https://mypy.readthedocs.io/en/latest/config_file.html#using-a-pyproject-toml-file
[tool.mypy]
files = "trycast.py,tests.py"
files = "trycast/__init__.py,tests.py"
mypy_path = "."
strict_optional = true

Expand Down
2 changes: 1 addition & 1 deletion tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -3086,7 +3086,7 @@ def test_no_pyre_typechecker_errors_exist(self) -> None:
def test_no_pytype_typechecker_errors_exist(self) -> None:
try:
subprocess.check_output(
["pytype", "--keep-going", "trycast.py", "tests.py"],
["pytype", "--keep-going", "trycast/__init__.py", "tests.py"],
env={"LANG": "en_US.UTF-8", "PATH": os.environ.get("PATH", "")},
stderr=subprocess.STDOUT,
)
Expand Down
File renamed without changes.
1 change: 1 addition & 0 deletions trycast/py.typed
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Marker file for PEP 561. This package uses inline types.