Skip to content

Commit

Permalink
Tighten bounds from Any to list
Browse files Browse the repository at this point in the history
This was throwing pyright warning. mypy doesn't care either way ??
  • Loading branch information
NickCrews committed Jun 1, 2023
1 parent a350cd9 commit 2f34b34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docopt/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ def fix(self) -> _BranchPattern:
self.fix_repeating_arguments()
return self

def fix_identities(self, uniq: Any | None = None) -> None:
def fix_identities(self, uniq: list | None = None) -> None:
"""Make pattern-tree tips point to same object if they are equal."""
flattened = self.flat()
uniq = list(set(flattened)) if uniq is None else uniq
Expand Down

0 comments on commit 2f34b34

Please sign in to comment.