mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +08:00
Big diff: Use new "|" union syntax (#5872)
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
from _typeshed import StrOrBytesPath
|
||||
from typing import NamedTuple, Optional, Union
|
||||
from typing import NamedTuple
|
||||
|
||||
class SndHeaders(NamedTuple):
|
||||
filetype: str
|
||||
framerate: int
|
||||
nchannels: int
|
||||
nframes: int
|
||||
sampwidth: Union[int, str]
|
||||
sampwidth: int | str
|
||||
|
||||
def what(filename: StrOrBytesPath) -> Optional[SndHeaders]: ...
|
||||
def whathdr(filename: StrOrBytesPath) -> Optional[SndHeaders]: ...
|
||||
def what(filename: StrOrBytesPath) -> SndHeaders | None: ...
|
||||
def whathdr(filename: StrOrBytesPath) -> SndHeaders | None: ...
|
||||
|
||||
Reference in New Issue
Block a user