feature: added a new type amalgamating the return types of the 'open' BIF

This commit is contained in:
2026-01-24 14:39:35 -05:00
parent a2d921a158
commit f37c2d5998

View File

@@ -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()