We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 242b289 commit 2ac74a4Copy full SHA for 2ac74a4
src/fastapi_cli/discover.py
@@ -4,7 +4,7 @@
4
from dataclasses import dataclass
5
from logging import getLogger
6
from pathlib import Path
7
-from typing import Union
+from typing import Union, Generator
8
9
from rich import print
10
from rich.padding import Padding
@@ -48,7 +48,7 @@ class ModuleData:
48
extra_sys_path: Path
49
50
@contextmanager
51
- def sys_path(self) -> str:
+ def sys_path(self) -> Generator:
52
"""Context manager to temporarily alter sys.path"""
53
extra_sys_path = str(self.extra_sys_path) if self.extra_sys_path else ""
54
if extra_sys_path:
0 commit comments