From e68e456cea729171eae59573f9439a307d54acdc Mon Sep 17 00:00:00 2001 From: Stefan Binder Date: Fri, 29 Sep 2023 18:01:52 +0200 Subject: [PATCH] Exclude IO from __init__.py --- tools/update_init_file.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/update_init_file.py b/tools/update_init_file.py index d657965bf..c02e63a8c 100644 --- a/tools/update_init_file.py +++ b/tools/update_init_file.py @@ -6,7 +6,7 @@ import sys from pathlib import Path from os.path import abspath, dirname, join -from typing import TypeVar, Type, cast, List, Any, Optional, Iterable, Union +from typing import TypeVar, Type, cast, List, Any, Optional, Iterable, Union, IO import black @@ -80,6 +80,7 @@ def _is_relevant_attribute(attr_name): or attr is Optional or attr is Iterable or attr is Union + or attr is IO or attr_name == "TypingDict" ): return False