From 05fcb5bcf0b00995ae72cd04aad2e3292fe5eaad Mon Sep 17 00:00:00 2001 From: halcy Date: Sat, 15 Feb 2025 00:52:46 +0200 Subject: [PATCH] fix a typo made when introducing types --- mastodon/authentication.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mastodon/authentication.py b/mastodon/authentication.py index 01810bf..ea5b87b 100644 --- a/mastodon/authentication.py +++ b/mastodon/authentication.py @@ -302,7 +302,7 @@ class Mastodon(Internals): def log_in(self, username: Optional[str] = None, password: Optional[str] = None, code: Optional[str] = None, redirect_uri: str = "urn:ietf:wg:oauth:2.0:oob", refresh_token: Optional[str] = None, scopes: List[str] = _DEFAULT_SCOPES, - to_file = Union[str, PurePath]) -> str: + to_file: Optional[Union[str, PurePath]] = None) -> str: """ Get the access token for a user, either via OAuth code flow, or (deprecated) password flow.