|
64 | 64 | id = logger.add({{sink}}) |
65 | 65 | reveal_type(id) |
66 | 66 | out: | |
67 | | - main:10: note: Revealed type is "builtins.int" |
| 67 | + main:10: note: Revealed type is "int" |
68 | 68 |
|
69 | 69 | - case: basic_sink_options |
70 | 70 | parametrized: |
|
144 | 144 | func(1, 2) + 3 |
145 | 145 | reveal_type(func) |
146 | 146 | out: | |
147 | | - main:6: note: Revealed type is "def (a: builtins.int, b: builtins.int) -> builtins.int" |
| 147 | + main:6: note: Revealed type is "def (a: int, b: int) -> int" |
148 | 148 |
|
149 | 149 | - case: catch_as_decorator_without_parentheses |
150 | 150 | main: | |
|
155 | 155 | func(1, 2) + 3 |
156 | 156 | reveal_type(func) |
157 | 157 | out: | |
158 | | - main:6: note: Revealed type is "def (a: builtins.int, b: builtins.int) -> builtins.int" |
| 158 | + main:6: note: Revealed type is "def (a: int, b: int) -> int" |
159 | 159 |
|
160 | 160 | - case: catch_as_context_manager |
161 | 161 | main: | |
|
211 | 211 | level = logger.level("INFO") |
212 | 212 | reveal_type(level) |
213 | 213 | out: | |
214 | | - main:4: note: Revealed type is "tuple[builtins.str, builtins.int, builtins.str, builtins.str, fallback=loguru.Level]" |
| 214 | + main:4: note: Revealed type is "tuple[str, int, str, str, fallback=loguru.Level]" |
215 | 215 |
|
216 | 216 | - case: level_set |
217 | 217 | main: | |
|
220 | 220 | level = logger.level("FOO", no=11, icon="!", color="<blue>") |
221 | 221 | reveal_type(level) |
222 | 222 | out: | |
223 | | - main:4: note: Revealed type is "tuple[builtins.str, builtins.int, builtins.str, builtins.str, fallback=loguru.Level]" |
| 223 | + main:4: note: Revealed type is "tuple[str, int, str, str, fallback=loguru.Level]" |
224 | 224 |
|
225 | 225 | - case: level_update |
226 | 226 | main: | |
|
229 | 229 | level = logger.level("INFO", color="<blue>") |
230 | 230 | reveal_type(level) |
231 | 231 | out: | |
232 | | - main:4: note: Revealed type is "tuple[builtins.str, builtins.int, builtins.str, builtins.str, fallback=loguru.Level]" |
| 232 | + main:4: note: Revealed type is "tuple[str, int, str, str, fallback=loguru.Level]" |
233 | 233 |
|
234 | 234 | - case: enable_and_disable_logger |
235 | 235 | main: | |
|
250 | 250 | ) |
251 | 251 | reveal_type(ids) |
252 | 252 | out: | |
253 | | - main:9: note: Revealed type is "builtins.list[builtins.int]" |
| 253 | + main:9: note: Revealed type is "list[int]" |
254 | 254 |
|
255 | 255 | - case: configure_stream_handler |
256 | 256 | skip: sys.version_info < (3, 7) # Old Mypy bug: Union of TypedDict not fully supported. |
|
281 | 281 | reveal_type(iterator) |
282 | 282 | reveal_type(match) |
283 | 283 | out: | |
284 | | - main:5: note: Revealed type is "typing.Generator[builtins.dict[builtins.str, Any], None, None]" |
285 | | - main:6: note: Revealed type is "builtins.dict[builtins.str, Any]" |
| 284 | + main:5: note: Revealed type is "typing.Generator[dict[str, Any], None, None]" |
| 285 | + main:6: note: Revealed type is "dict[str, Any]" |
286 | 286 |
|
287 | 287 | - case: invalid_add_argument |
288 | 288 | main: | |
|
0 commit comments