Skip to content

Commit 8eb911d

Browse files
authored
Merge pull request #1480 from JohnVillalovos/jlvillal/fix_hint
chore: correct a type-hint
2 parents 90ecf2f + 046607c commit 8eb911d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

gitlab/cli.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
import functools
2222
import re
2323
import sys
24+
from types import ModuleType
2425
from typing import Any, Callable, cast, Dict, Optional, Tuple, Type, TypeVar, Union
2526

2627
from requests.structures import CaseInsensitiveDict
@@ -88,7 +89,7 @@ def die(msg: str, e: Optional[Exception] = None) -> None:
8889
sys.exit(1)
8990

9091

91-
def what_to_cls(what: str, namespace: Type) -> RESTObject:
92+
def what_to_cls(what: str, namespace: ModuleType) -> Type[RESTObject]:
9293
classes = CaseInsensitiveDict(namespace.__dict__)
9394
lowercase_class = what.replace("-", "")
9495

0 commit comments

Comments
 (0)