Skip to content

Commit edb424f

Browse files
committed
update snapshots
1 parent b5cba06 commit edb424f

File tree

2 files changed

+54
-54
lines changed

2 files changed

+54
-54
lines changed

crates/ty_ide/src/goto_type_definition.rs

Lines changed: 47 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -199,14 +199,14 @@ mod tests {
199199

200200
assert_snapshot!(test.goto_type_definition(), @r#"
201201
info[goto-type-definition]: Type definition
202-
--> stdlib/builtins.pyi:890:7
202+
--> stdlib/builtins.pyi:892:7
203203
|
204-
888 | def __getitem__(self, key: int, /) -> str | int | None: ...
205-
889 |
206-
890 | class str(Sequence[str]):
204+
890 | def __getitem__(self, key: int, /) -> str | int | None: ...
205+
891 |
206+
892 | class str(Sequence[str]):
207207
| ^^^
208-
891 | """str(object='') -> str
209-
892 | str(bytes_or_buffer[, encoding[, errors]]) -> str
208+
893 | """str(object='') -> str
209+
894 | str(bytes_or_buffer[, encoding[, errors]]) -> str
210210
|
211211
info: Source
212212
--> main.py:4:13
@@ -228,14 +228,14 @@ mod tests {
228228

229229
assert_snapshot!(test.goto_type_definition(), @r#"
230230
info[goto-type-definition]: Type definition
231-
--> stdlib/builtins.pyi:890:7
231+
--> stdlib/builtins.pyi:892:7
232232
|
233-
888 | def __getitem__(self, key: int, /) -> str | int | None: ...
234-
889 |
235-
890 | class str(Sequence[str]):
233+
890 | def __getitem__(self, key: int, /) -> str | int | None: ...
234+
891 |
235+
892 | class str(Sequence[str]):
236236
| ^^^
237-
891 | """str(object='') -> str
238-
892 | str(bytes_or_buffer[, encoding[, errors]]) -> str
237+
893 | """str(object='') -> str
238+
894 | str(bytes_or_buffer[, encoding[, errors]]) -> str
239239
|
240240
info: Source
241241
--> main.py:2:22
@@ -344,14 +344,14 @@ mod tests {
344344

345345
assert_snapshot!(test.goto_type_definition(), @r#"
346346
info[goto-type-definition]: Type definition
347-
--> stdlib/builtins.pyi:890:7
347+
--> stdlib/builtins.pyi:892:7
348348
|
349-
888 | def __getitem__(self, key: int, /) -> str | int | None: ...
350-
889 |
351-
890 | class str(Sequence[str]):
349+
890 | def __getitem__(self, key: int, /) -> str | int | None: ...
350+
891 |
351+
892 | class str(Sequence[str]):
352352
| ^^^
353-
891 | """str(object='') -> str
354-
892 | str(bytes_or_buffer[, encoding[, errors]]) -> str
353+
893 | """str(object='') -> str
354+
894 | str(bytes_or_buffer[, encoding[, errors]]) -> str
355355
|
356356
info: Source
357357
--> main.py:4:18
@@ -413,14 +413,14 @@ f(**kwargs<CURSOR>)
413413

414414
assert_snapshot!(test.goto_type_definition(), @r#"
415415
info[goto-type-definition]: Type definition
416-
--> stdlib/builtins.pyi:2888:7
416+
--> stdlib/builtins.pyi:2890:7
417417
|
418-
2886 | """See PEP 585"""
419-
2887 |
420-
2888 | class dict(MutableMapping[_KT, _VT]):
418+
2888 | """See PEP 585"""
419+
2889 |
420+
2890 | class dict(MutableMapping[_KT, _VT]):
421421
| ^^^^
422-
2889 | """dict() -> new empty dictionary
423-
2890 | dict(mapping) -> new dictionary initialized from a mapping object's
422+
2891 | """dict() -> new empty dictionary
423+
2892 | dict(mapping) -> new dictionary initialized from a mapping object's
424424
|
425425
info: Source
426426
--> main.py:6:5
@@ -444,14 +444,14 @@ f(**kwargs<CURSOR>)
444444

445445
assert_snapshot!(test.goto_type_definition(), @r#"
446446
info[goto-type-definition]: Type definition
447-
--> stdlib/builtins.pyi:890:7
447+
--> stdlib/builtins.pyi:892:7
448448
|
449-
888 | def __getitem__(self, key: int, /) -> str | int | None: ...
450-
889 |
451-
890 | class str(Sequence[str]):
449+
890 | def __getitem__(self, key: int, /) -> str | int | None: ...
450+
891 |
451+
892 | class str(Sequence[str]):
452452
| ^^^
453-
891 | """str(object='') -> str
454-
892 | str(bytes_or_buffer[, encoding[, errors]]) -> str
453+
893 | """str(object='') -> str
454+
894 | str(bytes_or_buffer[, encoding[, errors]]) -> str
455455
|
456456
info: Source
457457
--> main.py:3:17
@@ -537,14 +537,14 @@ f(**kwargs<CURSOR>)
537537

538538
assert_snapshot!(test.goto_type_definition(), @r#"
539539
info[goto-type-definition]: Type definition
540-
--> stdlib/builtins.pyi:890:7
540+
--> stdlib/builtins.pyi:892:7
541541
|
542-
888 | def __getitem__(self, key: int, /) -> str | int | None: ...
543-
889 |
544-
890 | class str(Sequence[str]):
542+
890 | def __getitem__(self, key: int, /) -> str | int | None: ...
543+
891 |
544+
892 | class str(Sequence[str]):
545545
| ^^^
546-
891 | """str(object='') -> str
547-
892 | str(bytes_or_buffer[, encoding[, errors]]) -> str
546+
893 | """str(object='') -> str
547+
894 | str(bytes_or_buffer[, encoding[, errors]]) -> str
548548
|
549549
info: Source
550550
--> main.py:4:27
@@ -568,13 +568,13 @@ f(**kwargs<CURSOR>)
568568

569569
assert_snapshot!(test.goto_type_definition(), @r#"
570570
info[goto-type-definition]: Type definition
571-
--> stdlib/types.pyi:921:11
571+
--> stdlib/types.pyi:922:11
572572
|
573-
919 | if sys.version_info >= (3, 10):
574-
920 | @final
575-
921 | class NoneType:
573+
920 | if sys.version_info >= (3, 10):
574+
921 | @final
575+
922 | class NoneType:
576576
| ^^^^^^^^
577-
922 | """The type of the None singleton."""
577+
923 | """The type of the None singleton."""
578578
|
579579
info: Source
580580
--> main.py:3:17
@@ -585,14 +585,14 @@ f(**kwargs<CURSOR>)
585585
|
586586
587587
info[goto-type-definition]: Type definition
588-
--> stdlib/builtins.pyi:890:7
588+
--> stdlib/builtins.pyi:892:7
589589
|
590-
888 | def __getitem__(self, key: int, /) -> str | int | None: ...
591-
889 |
592-
890 | class str(Sequence[str]):
590+
890 | def __getitem__(self, key: int, /) -> str | int | None: ...
591+
891 |
592+
892 | class str(Sequence[str]):
593593
| ^^^
594-
891 | """str(object='') -> str
595-
892 | str(bytes_or_buffer[, encoding[, errors]]) -> str
594+
893 | """str(object='') -> str
595+
894 | str(bytes_or_buffer[, encoding[, errors]]) -> str
596596
|
597597
info: Source
598598
--> main.py:3:17

crates/ty_python_semantic/resources/mdtest/snapshots/invalid_argument_typ…_-_Invalid_argument_typ…_-_Test_calling_a_funct…_(3b18271a821a59b).snap

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,16 @@ error[invalid-argument-type]: Argument to function `loads` is incorrect
2929
| ^ Expected `str | bytes | bytearray`, found `Literal[5]`
3030
|
3131
info: Function defined here
32-
--> stdlib/json/__init__.pyi:218:5
32+
--> stdlib/json/__init__.pyi:220:5
3333
|
34-
216 | """
35-
217 |
36-
218 | def loads(
34+
218 | """
35+
219 |
36+
220 | def loads(
3737
| ^^^^^
38-
219 | s: str | bytes | bytearray,
38+
221 | s: str | bytes | bytearray,
3939
| -------------------------- Parameter declared here
40-
220 | *,
41-
221 | cls: type[JSONDecoder] | None = None,
40+
222 | *,
41+
223 | cls: type[JSONDecoder] | None = None,
4242
|
4343
info: rule `invalid-argument-type` is enabled by default
4444

0 commit comments

Comments
 (0)