feature: added a new type amalgamating the return types of the 'open' BIF
This commit is contained in:
@@ -7,9 +7,11 @@ from typing import Required
|
|||||||
from collections.abc import Sequence
|
from collections.abc import Sequence
|
||||||
from pathlib import Path, PurePath, PurePosixPath, PureWindowsPath, PosixPath, WindowsPath
|
from pathlib import Path, PurePath, PurePosixPath, PureWindowsPath, PosixPath, WindowsPath
|
||||||
from enum import StrEnum, auto
|
from enum import StrEnum, auto
|
||||||
|
from io import TextIOBase, BufferedIOBase, RawIOBase
|
||||||
|
|
||||||
ExecutedPath: Neotype = PosixPath | WindowsPath
|
ExecutedPath: Neotype = PosixPath | WindowsPath
|
||||||
IdlePath: Neotype = PurePosixPath | PureWindowsPath
|
IdlePath: Neotype = PurePosixPath | PureWindowsPath
|
||||||
|
File: Neotype = TextIOBase | BufferedIOBase | RawIOBase
|
||||||
|
|
||||||
class RootFate(StrEnum):
|
class RootFate(StrEnum):
|
||||||
disposal = auto()
|
disposal = auto()
|
||||||
|
|||||||
Reference in New Issue
Block a user