From 2f34b348bed6e78403c74f98a59d8979c13c2b63 Mon Sep 17 00:00:00 2001 From: Nick Crews Date: Thu, 1 Jun 2023 10:13:00 -0800 Subject: [PATCH] Tighten bounds from Any to list This was throwing pyright warning. mypy doesn't care either way ?? --- docopt/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docopt/__init__.py b/docopt/__init__.py index 13a66b7..d88f46e 100644 --- a/docopt/__init__.py +++ b/docopt/__init__.py @@ -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