Skip to content

Commit 4f5365b

Browse files
committed
prefix typed file with underscore to show private intent
1 parent f5fbb27 commit 4f5365b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tinify/typed.py renamed to tinify/_typed.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
class ResizeOptions(TypedDict,total=False):
44
method: Literal['scale', 'fit', 'cover', 'thumb']
5-
width: int
6-
height: int
5+
width: Optional[int]
6+
height: Optional[int]
77

88
ConvertTypes = Literal['image/webp', 'image/jpeg', 'image/png', "image/avif", "*/*"]
99
class ConvertOptions(TypedDict, total=False):

tinify/source.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
from tinify.result_meta import ResultMeta
88

99
try:
10-
from typing import Union, Dict, IO, Any, List, Literal, Optional, Unpack, TYPE_CHECKING, overload
10+
from typing import Union, Dict, IO, Any, Unpack, TYPE_CHECKING, overload
1111
if sys.version_info.major > 3 and sys.version_info.minor > 8:
12-
from tinify.typed import *
12+
from tinify._typed import *
1313
except ImportError:
1414
TYPE_CHECKING = False # type: ignore
1515

0 commit comments

Comments
 (0)