Skip to content

Commit

Permalink
Exclude IO from __init__.py
Browse files Browse the repository at this point in the history
  • Loading branch information
binste committed Sep 29, 2023
1 parent 1d76d0c commit e68e456
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/update_init_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit e68e456

Please sign in to comment.