From 6ff3f303a76718d095a8ac95b79c09fa0c31c38a Mon Sep 17 00:00:00 2001 From: Glinte <96855131+Glinte@users.noreply.github.com> Date: Sun, 12 Oct 2025 12:28:23 +0800 Subject: [PATCH] Fix implicit `None` --- ordered_set/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ordered_set/__init__.py b/ordered_set/__init__.py index ccd1cbf..9bb5850 100644 --- a/ordered_set/__init__.py +++ b/ordered_set/__init__.py @@ -14,6 +14,7 @@ List, MutableSet, AbstractSet, + Optional, Sequence, Set, TypeVar, @@ -62,7 +63,7 @@ class OrderedSet(MutableSet[T], Sequence[T]): OrderedSet([1, 2, 3]) """ - def __init__(self, initial: OrderedSetInitializer[T] = None): + def __init__(self, initial: Optional[OrderedSetInitializer[T]] = None): self.items: List[T] = [] self.map: Dict[T, int] = {} if initial is not None: