File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 1818import json
1919import logging
2020import os
21+ import pathlib
22+ import typing
2123
2224import httpx
2325import jwt
@@ -49,7 +51,8 @@ def from_key(key: str) -> AuthType:
4951 return auth
5052
5153 @staticmethod
52- def from_file (filename : str = None ) -> AuthType :
54+ def from_file (
55+ filename : typing .Union [str , pathlib .Path ] = None ) -> AuthType :
5356 '''Create authentication from secret file.
5457
5558 The secret file is named `.planet.json` and is stored in the user
@@ -130,7 +133,7 @@ def value(self):
130133 def to_dict (self ) -> dict :
131134 pass
132135
133- def write (self , filename : str = None ):
136+ def write (self , filename : typing . Union [ str , pathlib . Path ] = None ):
134137 '''Write authentication information.
135138
136139 Parameters:
You can’t perform that action at this time.
0 commit comments