Skip to content

Commit 66da0fe

Browse files
committed
Bump Mypy to v1.20.0
1 parent c401b0c commit 66da0fe

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ dev = [
6767
"mypy==v1.4.1 ; python_version>='3.7' and python_version<'3.8'",
6868
"mypy==v1.14.1 ; python_version>='3.8' and python_version<'3.9'",
6969
"mypy==v1.18.2 ; python_version>='3.9' and python_version<'3.12'",
70-
"mypy==v1.19.1 ; python_version>='3.12'",
70+
"mypy==v1.20.0 ; python_version>='3.12'",
7171
# Docs.
7272
"Sphinx==8.2.1 ; python_version>='3.11'",
7373
"sphinx-rtd-theme==3.0.2 ; python_version>='3.11'",

tests/typesafety/test_logger.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
id = logger.add({{sink}})
6565
reveal_type(id)
6666
out: |
67-
main:10: note: Revealed type is "builtins.int"
67+
main:10: note: Revealed type is "int"
6868
6969
- case: basic_sink_options
7070
parametrized:
@@ -144,7 +144,7 @@
144144
func(1, 2) + 3
145145
reveal_type(func)
146146
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"
148148
149149
- case: catch_as_decorator_without_parentheses
150150
main: |
@@ -155,7 +155,7 @@
155155
func(1, 2) + 3
156156
reveal_type(func)
157157
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"
159159
160160
- case: catch_as_context_manager
161161
main: |
@@ -211,7 +211,7 @@
211211
level = logger.level("INFO")
212212
reveal_type(level)
213213
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]"
215215
216216
- case: level_set
217217
main: |
@@ -220,7 +220,7 @@
220220
level = logger.level("FOO", no=11, icon="!", color="<blue>")
221221
reveal_type(level)
222222
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]"
224224
225225
- case: level_update
226226
main: |
@@ -229,7 +229,7 @@
229229
level = logger.level("INFO", color="<blue>")
230230
reveal_type(level)
231231
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]"
233233
234234
- case: enable_and_disable_logger
235235
main: |
@@ -250,7 +250,7 @@
250250
)
251251
reveal_type(ids)
252252
out: |
253-
main:9: note: Revealed type is "builtins.list[builtins.int]"
253+
main:9: note: Revealed type is "list[int]"
254254
255255
- case: configure_stream_handler
256256
skip: sys.version_info < (3, 7) # Old Mypy bug: Union of TypedDict not fully supported.
@@ -281,8 +281,8 @@
281281
reveal_type(iterator)
282282
reveal_type(match)
283283
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]"
286286
287287
- case: invalid_add_argument
288288
main: |

0 commit comments

Comments
 (0)