From f37c2d5998bf515a02565916bd7570583dfe7079 Mon Sep 17 00:00:00 2001 From: Alex Tavarez Date: Sat, 24 Jan 2026 14:39:35 -0500 Subject: [PATCH] feature: added a new type amalgamating the return types of the 'open' BIF --- custtypes.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/custtypes.py b/custtypes.py index bb57fc8..d991ba7 100644 --- a/custtypes.py +++ b/custtypes.py @@ -7,9 +7,11 @@ from typing import Required from collections.abc import Sequence from pathlib import Path, PurePath, PurePosixPath, PureWindowsPath, PosixPath, WindowsPath from enum import StrEnum, auto +from io import TextIOBase, BufferedIOBase, RawIOBase ExecutedPath: Neotype = PosixPath | WindowsPath IdlePath: Neotype = PurePosixPath | PureWindowsPath +File: Neotype = TextIOBase | BufferedIOBase | RawIOBase class RootFate(StrEnum): disposal = auto()