1+ from collections .abc import Iterable , Iterator
12import sys
2- from typing import (
3- TYPE_CHECKING ,
4- Any ,
5- Callable ,
6- Iterable ,
7- Iterator ,
8- List ,
9- Optional ,
10- Tuple ,
11- Type ,
12- Union ,
13- overload ,
14- )
3+ from typing import TYPE_CHECKING , Any , Callable , Optional , Union , overload
154
165from bigxml .handler_creator import create_handler
176from bigxml .typing import (
@@ -50,8 +39,8 @@ def iter_from(
5039 self ,
5140 * handlers : Union [
5241 str ,
53- List [str ],
54- Tuple [str , ...],
42+ list [str ],
43+ tuple [str , ...],
5544 ],
5645 ) -> Iterator ["XMLElement" ]: ...
5746
@@ -62,8 +51,8 @@ def iter_from(
6251 Callable [[Union ["XMLElement" , "XMLText" ]], Optional [Iterable [T ]]],
6352 ClassHandlerWithCustomWrapper0 [T ],
6453 ClassHandlerWithCustomWrapper1 [T ],
65- Type [ClassHandlerWithCustomWrapper0 [T ]],
66- Type [ClassHandlerWithCustomWrapper1 [T ]],
54+ type [ClassHandlerWithCustomWrapper0 [T ]],
55+ type [ClassHandlerWithCustomWrapper1 [T ]],
6756 ],
6857 ) -> Iterator [T ]: ...
6958
@@ -74,9 +63,9 @@ def iter_from(
7463 Callable [[Union ["XMLElement" , "XMLText" ]], Optional [Iterable [T ]]],
7564 ClassHandlerWithCustomWrapper0 [T ],
7665 ClassHandlerWithCustomWrapper1 [T ],
77- Type [ClassHandlerWithCustomWrapper0 [T ]],
78- Type [ClassHandlerWithCustomWrapper1 [T ]],
79- Type [T ],
66+ type [ClassHandlerWithCustomWrapper0 [T ]],
67+ type [ClassHandlerWithCustomWrapper1 [T ]],
68+ type [T ],
8069 ],
8170 ) -> Iterator [T ]: ...
8271
@@ -87,11 +76,11 @@ def iter_from(
8776 Callable [[Union ["XMLElement" , "XMLText" ]], Optional [Iterable [T ]]],
8877 ClassHandlerWithCustomWrapper0 [T ],
8978 ClassHandlerWithCustomWrapper1 [T ],
90- Type [ClassHandlerWithCustomWrapper0 [T ]],
91- Type [ClassHandlerWithCustomWrapper1 [T ]],
79+ type [ClassHandlerWithCustomWrapper0 [T ]],
80+ type [ClassHandlerWithCustomWrapper1 [T ]],
9281 str ,
93- List [str ],
94- Tuple [str , ...],
82+ list [str ],
83+ tuple [str , ...],
9584 ],
9685 ) -> Iterator [Union ["XMLElement" , T ]]: ...
9786
@@ -102,12 +91,12 @@ def iter_from(
10291 Callable [[Union ["XMLElement" , "XMLText" ]], Optional [Iterable [T ]]],
10392 ClassHandlerWithCustomWrapper0 [T ],
10493 ClassHandlerWithCustomWrapper1 [T ],
105- Type [ClassHandlerWithCustomWrapper0 [T ]],
106- Type [ClassHandlerWithCustomWrapper1 [T ]],
107- Type [T ],
94+ type [ClassHandlerWithCustomWrapper0 [T ]],
95+ type [ClassHandlerWithCustomWrapper1 [T ]],
96+ type [T ],
10897 str ,
109- List [str ],
110- Tuple [str , ...],
98+ list [str ],
99+ tuple [str , ...],
111100 ],
112101 ) -> Iterator [Union ["XMLElement" , T ]]: ...
113102
@@ -135,8 +124,8 @@ def return_from(
135124 self ,
136125 * handlers : Union [
137126 str ,
138- List [str ],
139- Tuple [str , ...],
127+ list [str ],
128+ tuple [str , ...],
140129 ],
141130 ) -> Optional ["XMLElement" ]: ...
142131
@@ -147,8 +136,8 @@ def return_from(
147136 Callable [[Union ["XMLElement" , "XMLText" ]], Optional [Iterable [T ]]],
148137 ClassHandlerWithCustomWrapper0 [T ],
149138 ClassHandlerWithCustomWrapper1 [T ],
150- Type [ClassHandlerWithCustomWrapper0 [T ]],
151- Type [ClassHandlerWithCustomWrapper1 [T ]],
139+ type [ClassHandlerWithCustomWrapper0 [T ]],
140+ type [ClassHandlerWithCustomWrapper1 [T ]],
152141 ],
153142 ) -> Optional [T ]: ...
154143
@@ -159,9 +148,9 @@ def return_from(
159148 Callable [[Union ["XMLElement" , "XMLText" ]], Optional [Iterable [T ]]],
160149 ClassHandlerWithCustomWrapper0 [T ],
161150 ClassHandlerWithCustomWrapper1 [T ],
162- Type [ClassHandlerWithCustomWrapper0 [T ]],
163- Type [ClassHandlerWithCustomWrapper1 [T ]],
164- Type [T ],
151+ type [ClassHandlerWithCustomWrapper0 [T ]],
152+ type [ClassHandlerWithCustomWrapper1 [T ]],
153+ type [T ],
165154 ],
166155 ) -> Optional [T ]: ...
167156
@@ -172,11 +161,11 @@ def return_from(
172161 Callable [[Union ["XMLElement" , "XMLText" ]], Optional [Iterable [T ]]],
173162 ClassHandlerWithCustomWrapper0 [T ],
174163 ClassHandlerWithCustomWrapper1 [T ],
175- Type [ClassHandlerWithCustomWrapper0 [T ]],
176- Type [ClassHandlerWithCustomWrapper1 [T ]],
164+ type [ClassHandlerWithCustomWrapper0 [T ]],
165+ type [ClassHandlerWithCustomWrapper1 [T ]],
177166 str ,
178- List [str ],
179- Tuple [str , ...],
167+ list [str ],
168+ tuple [str , ...],
180169 ],
181170 ) -> Optional [Union ["XMLElement" , T ]]: ...
182171
@@ -187,12 +176,12 @@ def return_from(
187176 Callable [[Union ["XMLElement" , "XMLText" ]], Optional [Iterable [T ]]],
188177 ClassHandlerWithCustomWrapper0 [T ],
189178 ClassHandlerWithCustomWrapper1 [T ],
190- Type [ClassHandlerWithCustomWrapper0 [T ]],
191- Type [ClassHandlerWithCustomWrapper1 [T ]],
179+ type [ClassHandlerWithCustomWrapper0 [T ]],
180+ type [ClassHandlerWithCustomWrapper1 [T ]],
192181 str ,
193- List [str ],
194- Tuple [str , ...],
195- Type [T ],
182+ list [str ],
183+ tuple [str , ...],
184+ type [T ],
196185 ],
197186 ) -> Optional [Union ["XMLElement" , T ]]: ...
198187
0 commit comments