Skip to content

Commit e1b5d1e

Browse files
committed
Use str|None instead of Optional
1 parent ffb7e22 commit e1b5d1e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

stubs/datauri/datauri/datauri.pyi

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,16 @@
11
from collections.abc import Generator
22
from re import Pattern
3-
from typing import Optional
4-
53

64
RE_DATA_URI: Pattern[str] # undocumented
75

86
class DataURIError(ValueError): ...
97

108
class ParsedDataURI:
11-
media_type: Optional[str]
9+
media_type: str | None
1210
data: bytes
1311
uri: str
1412

15-
def __init__(self, media_type: Optional[str], data: bytes, uri: str) -> None: ...
13+
def __init__(self, media_type: str | None, data: bytes, uri: str) -> None: ...
1614
def __eq__(self, other: object) -> bool: ...
1715
def __hash__(self) -> int: ...
1816

0 commit comments

Comments
 (0)