mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-09 13:02:22 +08:00
Use _typeshed.FileDescriptorOrPath in stubs (#9695)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
from _typeshed import Incomplete, StrOrBytesPath, SupportsRead
|
||||
from _typeshed import FileDescriptorOrPath, Incomplete, SupportsRead
|
||||
from typing import Any, Protocol
|
||||
from typing_extensions import Literal
|
||||
|
||||
@@ -109,7 +109,7 @@ class TransposedFont:
|
||||
def getsize(self, text: str | bytes, *args, **kwargs) -> tuple[int, int]: ...
|
||||
def getmask(self, text: str | bytes, mode: str = ..., *args, **kwargs): ...
|
||||
|
||||
def load(filename: StrOrBytesPath | int) -> ImageFont: ...
|
||||
def load(filename: FileDescriptorOrPath) -> ImageFont: ...
|
||||
def truetype(
|
||||
font: str | bytes | SupportsRead[bytes] | None = ...,
|
||||
size: int = ...,
|
||||
|
||||
Reference in New Issue
Block a user