Open oliversen opened 6 months ago
If the Optional
type is specified, then we must set the default value for the parameter. In this case, it is necessary to rewrite further code.
Correctly dotenv_path: StrPath
or dotenv_path: Optional[StrPath] = None
I agree with dotenv_path: Optional[StrPath] = None
, the DotEnv object is build on load_dotenv
which first arg is dotenv_path: Optional[StrPath] = None
.
They are correct you can use dotenv_path or stream to create a dotenv (which make both optionals). Encoding is also optional for tempfile https://docs.python.org/3/library/tempfile.html.