Skip to content

Commit

Permalink
Fix wrong type annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
oliversen authored May 9, 2024
1 parent 08937a1 commit 5e5b300
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/dotenv/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@ def with_warn_for_invalid_lines(mappings: Iterator[Binding]) -> Iterator[Binding
class DotEnv:
def __init__(
self,
dotenv_path: Optional[StrPath],
dotenv_path: StrPath,
stream: Optional[IO[str]] = None,
verbose: bool = False,
encoding: Optional[str] = None,
interpolate: bool = True,
override: bool = True,
) -> None:
self.dotenv_path: Optional[StrPath] = dotenv_path
self.dotenv_path: StrPath = dotenv_path
self.stream: Optional[IO[str]] = stream
self._dict: Optional[Dict[str, Optional[str]]] = None
self.verbose: bool = verbose
Expand Down Expand Up @@ -130,7 +130,7 @@ def get_key(
@contextmanager
def rewrite(
path: StrPath,
encoding: Optional[str],
encoding: str,
) -> Iterator[Tuple[IO[str], IO[str]]]:
pathlib.Path(path).touch()

Expand Down

0 comments on commit 5e5b300

Please sign in to comment.