Skip to content

Commit

Permalink
Temporarily allow complex specification for pytype
Browse files Browse the repository at this point in the history
  • Loading branch information
Avasam committed Aug 18, 2024
1 parent 9c05486 commit a36ba5a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/check_typeshed_structure.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,8 @@ def check_requirement_pins() -> None:
for package in linters:
assert package in requirements, f"type checker/linter '{package}' not found in {REQS_FILE}"
spec = requirements[package].specifier
assert len(spec) == 1, f"type checker/linter '{package}' has complex specifier in {REQS_FILE}"
if package != "pytype": # Temporarily allow complex specification for pytype
assert len(spec) == 1, f"type checker/linter '{package}' has complex specifier in {REQS_FILE}"
msg = f"type checker/linter '{package}' is not pinned to an exact version in {REQS_FILE}"
assert str(spec).startswith("=="), msg

Expand Down

0 comments on commit a36ba5a

Please sign in to comment.