Skip to content

Commit

Permalink
lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mlasevich committed Sep 19, 2024
1 parent 3967675 commit d11bd79
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/fastapi_cli/discover.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from dataclasses import dataclass
from logging import getLogger
from pathlib import Path
from typing import Generator, Union
from typing import Iterator, Union

from rich import print
from rich.padding import Padding
Expand Down Expand Up @@ -48,8 +48,8 @@ class ModuleData:
extra_sys_path: Path

@contextmanager
def sys_path(self) -> Generator:
"""Context manager to temporarily alter sys.path"""
def sys_path(self) -> Iterator[str]:
"""Context manaxger to temporarily alter sys.path"""
extra_sys_path = str(self.extra_sys_path) if self.extra_sys_path else ""
if extra_sys_path:
logger.warning("Adding %s to sys.path...", extra_sys_path)
Expand Down

0 comments on commit d11bd79

Please sign in to comment.