Eric Traut
276448f4d1
Fixed package-lock files
Validation / Typecheck (push) Waiting to run
Validation / Style (push) Waiting to run
Validation / Test macos-latest (push) Blocked by required conditions
Validation / Test ubuntu-latest (push) Blocked by required conditions
Validation / Test windows-latest (push) Blocked by required conditions
Validation / Build (push) Blocked by required conditions
Validation / Required (push) Blocked by required conditions
Run mypy_primer on push / Run mypy_primer on push (push) Has been cancelled
2025-10-21 22:54:44 -07:00
Eric Traut
783ee6761a
Published 1.1.407
2025-10-21 19:19:10 -07:00
Eric Traut
f9fc2aa85a
Updated typeshed stubs to the latest version ( #11051 )
2025-10-21 19:17:53 -07:00
Eric Traut
5f599f9271
Added error reporting for unknown or unsupported config settings. This addresses #11040 . ( #11045 )
Run mypy_primer on push / Run mypy_primer on push (push) Has been cancelled
Validation / Typecheck (push) Has been cancelled
Validation / Style (push) Has been cancelled
Validation / Test macos-latest (push) Has been cancelled
Validation / Test ubuntu-latest (push) Has been cancelled
Validation / Test windows-latest (push) Has been cancelled
Validation / Build (push) Has been cancelled
Validation / Required (push) Has been cancelled
2025-10-17 21:07:14 -07:00
Eric Traut
cadded6f4a
Fixed regression that results in --createstub doing nothing. This addresses #11043 . ( #11044 )
2025-10-17 20:39:13 -07:00
Eric Traut
538053da7a
Fixed bug that causes a false negative when a TypedDict overrides a parent with extra_items that are not ReadOnly with a ReadOnly field. This addresses #11037 . ( #11038 )
Run mypy_primer on push / Run mypy_primer on push (push) Has been cancelled
Validation / Typecheck (push) Has been cancelled
Validation / Style (push) Has been cancelled
Validation / Test macos-latest (push) Has been cancelled
Validation / Test ubuntu-latest (push) Has been cancelled
Validation / Test windows-latest (push) Has been cancelled
Validation / Build (push) Has been cancelled
Validation / Required (push) Has been cancelled
2025-10-15 22:13:38 -07:00
Eric Traut
ba3f0d4313
Fixed bug that results in a false positive when a namedtuple functional form is used with a field starting with an underscore and rename=True. This addresses #11033 . ( #11034 )
Run mypy_primer on push / Run mypy_primer on push (push) Has been cancelled
Validation / Typecheck (push) Has been cancelled
Validation / Style (push) Has been cancelled
Validation / Test macos-latest (push) Has been cancelled
Validation / Test ubuntu-latest (push) Has been cancelled
Validation / Test windows-latest (push) Has been cancelled
Validation / Build (push) Has been cancelled
Validation / Required (push) Has been cancelled
2025-10-14 22:01:39 -07:00
Eric Traut
80eb0dccbe
Fixed bug in type narrowing for literal patterns. The runtime uses equality checks, so matching against the pattern 3 cannot necessarily narrow the type to Literal[3]. This addresses #11026 . ( #11028 )
Run mypy_primer on push / Run mypy_primer on push (push) Waiting to run
Validation / Typecheck (push) Waiting to run
Validation / Style (push) Waiting to run
Validation / Test macos-latest (push) Blocked by required conditions
Validation / Test ubuntu-latest (push) Blocked by required conditions
Validation / Test windows-latest (push) Blocked by required conditions
Validation / Build (push) Blocked by required conditions
Validation / Required (push) Blocked by required conditions
2025-10-13 17:09:38 -07:00
Eric Traut
b1c9ae2bb8
Fixed bug that results in a false positive error when a with statement has a single parenthesized context manager. This addresses #11020 . ( #11024 )
Run mypy_primer on push / Run mypy_primer on push (push) Has been cancelled
Validation / Typecheck (push) Has been cancelled
Validation / Style (push) Has been cancelled
Validation / Test macos-latest (push) Has been cancelled
Validation / Test ubuntu-latest (push) Has been cancelled
Validation / Test windows-latest (push) Has been cancelled
Validation / Build (push) Has been cancelled
Validation / Required (push) Has been cancelled
2025-10-11 12:13:48 -07:00
Eric Traut
346f74cb92
Fixed a bug that causes a @dataclass_transform to fail if the decorator returns a callback protocol rather than a Callable. This addresses #11015 . ( #11018 )
Validation / Test macos-latest (push) Has been cancelled
Validation / Style (push) Has been cancelled
Run mypy_primer on push / Run mypy_primer on push (push) Has been cancelled
Validation / Typecheck (push) Has been cancelled
Validation / Test ubuntu-latest (push) Has been cancelled
Validation / Test windows-latest (push) Has been cancelled
Validation / Build (push) Has been cancelled
Validation / Required (push) Has been cancelled
2025-10-09 22:36:02 -07:00
Bill Schnurr
20aa20a100
Pull Pylance with Pyright 1.1.406 ( #11010 )
...
Run mypy_primer on push / Run mypy_primer on push (push) Has been cancelled
Validation / Typecheck (push) Has been cancelled
Validation / Style (push) Has been cancelled
Validation / Test macos-latest (push) Has been cancelled
Validation / Test ubuntu-latest (push) Has been cancelled
Validation / Test windows-latest (push) Has been cancelled
Validation / Build (push) Has been cancelled
Validation / Required (push) Has been cancelled
* pull-pylance-with-pyright-1.1.406-20251008-232729
* fixed linting issue
---------
Co-authored-by: Azure Piplines <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: HeeJae Chang <hechang@microsoft.com>
2025-10-08 17:02:24 -07:00
Eric Traut
9ed33cf7be
Fixed bug that results in a spurious error when running pyright on Python 3.14 but configured for Python 3.13 or earlier. This addresses #11003 . ( #11006 )
Run mypy_primer on push / Run mypy_primer on push (push) Waiting to run
Validation / Typecheck (push) Waiting to run
Validation / Style (push) Waiting to run
Validation / Test macos-latest (push) Blocked by required conditions
Validation / Test ubuntu-latest (push) Blocked by required conditions
Validation / Test windows-latest (push) Blocked by required conditions
Validation / Build (push) Blocked by required conditions
Validation / Required (push) Blocked by required conditions
2025-10-07 22:38:52 -07:00
Eric Traut
6e877ddb10
Changed default Python version from 3.13 to 3.14 to reflect new stable version ( #11004 )
Run mypy_primer on push / Run mypy_primer on push (push) Waiting to run
Validation / Build (push) Blocked by required conditions
Validation / Typecheck (push) Waiting to run
Validation / Style (push) Waiting to run
Validation / Test macos-latest (push) Blocked by required conditions
Validation / Test ubuntu-latest (push) Blocked by required conditions
Validation / Test windows-latest (push) Blocked by required conditions
Validation / Required (push) Blocked by required conditions
2025-10-07 17:03:59 -07:00
Victorien
69a5d84961
Fixed bug that omit **kwargs parameter with an unpacked TypedDict with extra items. ( #10997 )
...
* Fixed bug that omit `**kwargs` parameter with an unpacked TypedDict with extra items. This addresses #10996 .
* Fixes
2025-10-07 15:13:14 -07:00
Mike Barry
ed83d58de9
Eagerly exit isEnumClassWithMembers ( #10990 )
...
Validation / Typecheck (push) Has been cancelled
Validation / Style (push) Has been cancelled
Run mypy_primer on push / Run mypy_primer on push (push) Has been cancelled
Validation / Test macos-latest (push) Has been cancelled
Validation / Test ubuntu-latest (push) Has been cancelled
Validation / Test windows-latest (push) Has been cancelled
Validation / Build (push) Has been cancelled
Validation / Required (push) Has been cancelled
* Eagerly exit isEnumClassWithMembers
* Fix linting error
---------
Co-authored-by: Eric Traut <eric@traut.com>
2025-10-03 17:39:06 -07:00
Eric Traut
17f24b3480
Updated diagnostic message to include "standard" mode. This addresses #10988 . ( #10989 )
Run mypy_primer on push / Run mypy_primer on push (push) Waiting to run
Validation / Typecheck (push) Waiting to run
Validation / Style (push) Waiting to run
Validation / Test macos-latest (push) Blocked by required conditions
Validation / Test ubuntu-latest (push) Blocked by required conditions
Validation / Test windows-latest (push) Blocked by required conditions
Validation / Build (push) Blocked by required conditions
Validation / Required (push) Blocked by required conditions
2025-10-02 15:43:14 -07:00
Rich Chiodo
30db40b689
Add users to notification list for manual validation ( #10984 )
Validation / Typecheck (push) Waiting to run
Validation / Style (push) Waiting to run
Validation / Test macos-latest (push) Blocked by required conditions
Validation / Test ubuntu-latest (push) Blocked by required conditions
Validation / Test windows-latest (push) Blocked by required conditions
Validation / Build (push) Blocked by required conditions
Validation / Required (push) Blocked by required conditions
2025-10-01 09:49:38 -07:00
Eric Traut
308f5c0f15
Published 1.1.406
Validation / Typecheck (push) Waiting to run
Validation / Style (push) Waiting to run
Validation / Test macos-latest (push) Blocked by required conditions
Validation / Test ubuntu-latest (push) Blocked by required conditions
Validation / Test windows-latest (push) Blocked by required conditions
Validation / Build (push) Blocked by required conditions
Validation / Required (push) Blocked by required conditions
Run mypy_primer on push / Run mypy_primer on push (push) Has been cancelled
2025-09-30 16:30:01 -07:00
Eric Traut
38317d66f6
Fixed bug that results in false positive for module attributes that are synthesized for namespace modules. This addresses #10692 . ( #10972 )
Run mypy_primer on push / Run mypy_primer on push (push) Has been cancelled
Validation / Typecheck (push) Has been cancelled
Validation / Style (push) Has been cancelled
Validation / Test macos-latest (push) Has been cancelled
Validation / Test ubuntu-latest (push) Has been cancelled
Validation / Test windows-latest (push) Has been cancelled
Validation / Required (push) Has been cancelled
Validation / Build (push) Has been cancelled
2025-09-27 23:01:49 -07:00
Eric Traut
676cd113ff
Fixed several bugs related to subscripts with unpack operators, notably when the unpack targets a tuple with a known length. This addresses #10723 . ( #10971 )
2025-09-27 19:02:58 -07:00
Eric Traut
8996f91155
Removed remaining code that was left over from PEP 637, which was rejected.
2025-09-27 18:22:20 -07:00
Eric Traut
f7285d95d3
Added special casing in reportUnnecessaryComparison check for modules. This addresses #10706 . ( #10970 )
2025-09-27 17:58:46 -07:00
Eric Traut
907028c4d2
Added check for the use of a NewType in a class pattern. This addresses #10784 . ( #10969 )
2025-09-27 17:33:24 -07:00
Eric Traut
7b28a6103e
Updated typeshed stubs to the latest version ( #10968 )
2025-09-27 15:56:06 -07:00
Eric Traut
ad557b583f
Fixed bug that results in incorrect behavior when partial is applied to a function with a positional-only parameter separator. This addresses #10954 . ( #10967 )
2025-09-27 15:37:56 -07:00
dependabot[bot]
6a92d60813
Bump tar-fs from 2.1.3 to 2.1.4 in /packages/vscode-pyright ( #10965 )
...
Validation / Typecheck (push) Waiting to run
Validation / Style (push) Waiting to run
Validation / Test macos-latest (push) Blocked by required conditions
Validation / Test ubuntu-latest (push) Blocked by required conditions
Validation / Test windows-latest (push) Blocked by required conditions
Validation / Build (push) Blocked by required conditions
Validation / Required (push) Blocked by required conditions
Bumps [tar-fs](https://github.com/mafintosh/tar-fs ) from 2.1.3 to 2.1.4.
- [Commits](https://github.com/mafintosh/tar-fs/compare/v2.1.3...v2.1.4 )
---
updated-dependencies:
- dependency-name: tar-fs
dependency-version: 2.1.4
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-09-26 23:44:11 -07:00
Steve Smith
b0fb77d488
Fixed bug that causes workspace edits to include annotation IDs without changeAnnotations field. ( #10902 )
...
Run mypy_primer on push / Run mypy_primer on push (push) Has been cancelled
Validation / Typecheck (push) Has been cancelled
Validation / Style (push) Has been cancelled
Validation / Test macos-latest (push) Has been cancelled
Validation / Test ubuntu-latest (push) Has been cancelled
Validation / Test windows-latest (push) Has been cancelled
Validation / Build (push) Has been cancelled
Validation / Required (push) Has been cancelled
* Fixed bug that causes workspace edits to include annotation IDs without changeAnnotations field. This addresses #10671 .
* Extend bug fix for only including annotationId when changeAnnotations is provided to CreateFile, RenameFile, DeleteFile.
* Add unit tests.
* More idiomatic tests.
---------
Co-authored-by: Eric Traut <eric@traut.com>
2025-09-21 11:28:25 -07:00
el1s7
79ff3e3b1e
Fix literal overload completions in call arguments ( #10762 )
...
Run mypy_primer on push / Run mypy_primer on push (push) Has been cancelled
Validation / Typecheck (push) Has been cancelled
Validation / Style (push) Has been cancelled
Validation / Build (push) Has been cancelled
Validation / Test macos-latest (push) Has been cancelled
Validation / Test ubuntu-latest (push) Has been cancelled
Validation / Test windows-latest (push) Has been cancelled
Validation / Required (push) Has been cancelled
* Fix literal overload completions in call arguments
Skip the early return in _tryAddLiterals when inside a function‐call argument so that the call-argument literal completion logic runs and enumerates all Literal[...] overload values.
* Add unit test for overloaded Literal completions
* Format with prettier
---------
Co-authored-by: Eric Traut <eric@traut.com>
2025-09-19 09:54:23 -07:00
Eric Traut
1a46b0f006
Clarified implicit import rules in docs.
2025-09-19 09:10:28 -07:00
Rich Chiodo
97ae524744
Fix regression in symlinked files ( #10944 )
...
Run mypy_primer on push / Run mypy_primer on push (push) Waiting to run
Validation / Typecheck (push) Waiting to run
Validation / Test macos-latest (push) Blocked by required conditions
Validation / Style (push) Waiting to run
Validation / Test ubuntu-latest (push) Blocked by required conditions
Validation / Test windows-latest (push) Blocked by required conditions
Validation / Build (push) Blocked by required conditions
Validation / Required (push) Blocked by required conditions
* Fix regression in symlinked files
* Handle directory case too
* Fix prettier errors
* Add test and shortcut isDirectory check
* Fix prettier
* Test can only run in test env
* Formatting change
* Only call tryStat once
* Review feedback
2025-09-18 23:11:02 +00:00
Rich Chiodo
b122ef906b
Fix mypy_primer to run again ( #10945 )
2025-09-18 13:04:12 -07:00
Rich Chiodo
135fa85132
Subtle issue with change tracking when not doing analysis ( #10918 )
...
Run mypy_primer on push / Run mypy_primer on push (push) Has been cancelled
Validation / Typecheck (push) Has been cancelled
Validation / Style (push) Has been cancelled
Validation / Test macos-latest (push) Has been cancelled
Validation / Test ubuntu-latest (push) Has been cancelled
Validation / Test windows-latest (push) Has been cancelled
Validation / Build (push) Has been cancelled
Validation / Required (push) Has been cancelled
* Add test that shows failure
* Fix issue
2025-09-10 15:51:47 -07:00
Eric Traut
7905b1936a
Removed "reportShadowedImports" check and associated "renameShadowedFile" action. This feature is off by default in pyright although enabled by default in pylance. ( #10891 )
...
Run mypy_primer on push / Run mypy_primer on push (push) Has been cancelled
Validation / Typecheck (push) Has been cancelled
Validation / Style (push) Has been cancelled
Validation / Test macos-latest (push) Has been cancelled
Validation / Test ubuntu-latest (push) Has been cancelled
Validation / Test windows-latest (push) Has been cancelled
Validation / Build (push) Has been cancelled
Validation / Required (push) Has been cancelled
It's problematic for a number of reasons:
1. It's not a type checking feature. It's a linting feature, so it really don't belong in a type checker.
2. The implementation is very problematic because it introduces an inverted dependency. Namely, it causes the Checker to depend on a language server provider and source mapper.
3. This dependency results in significant performance problems when the check is enabled.
I'd prefer to leave this feature out permanently and ask users to rely on a linter if they want to enable a check like this. If the pylance team feels that this is really important to retain, then it should be reimplemented in a way that doesn't introduce bad dependencies and performance problems.
2025-09-08 09:35:09 -07:00
Eric Traut
b182c80288
Fixed bug that results in spurious errors when a wildcard import targets a traditional TypeVar with the same name as a PEP 695 TypeVar. This addresses #10900 . ( #10903 )
Run mypy_primer on push / Run mypy_primer on push (push) Has been cancelled
Validation / Typecheck (push) Has been cancelled
Validation / Style (push) Has been cancelled
Validation / Test macos-latest (push) Has been cancelled
Validation / Test ubuntu-latest (push) Has been cancelled
Validation / Build (push) Has been cancelled
Validation / Required (push) Has been cancelled
Validation / Test windows-latest (push) Has been cancelled
2025-09-06 21:46:27 -07:00
Eric Traut
eaa43e434b
Reduced log level for "Skipping recursive symlink" when enumerating project files.
Run mypy_primer on push / Run mypy_primer on push (push) Has been cancelled
Validation / Typecheck (push) Has been cancelled
Validation / Style (push) Has been cancelled
Validation / Test macos-latest (push) Has been cancelled
Validation / Test ubuntu-latest (push) Has been cancelled
Validation / Test windows-latest (push) Has been cancelled
Validation / Build (push) Has been cancelled
Validation / Required (push) Has been cancelled
2025-09-04 20:58:46 -07:00
konsti
b4a158f48a
Clarify editable install behavior with setuptools and uv ( #10888 )
...
Validation / Typecheck (push) Waiting to run
Validation / Style (push) Waiting to run
Validation / Test macos-latest (push) Blocked by required conditions
Validation / Test ubuntu-latest (push) Blocked by required conditions
Validation / Test windows-latest (push) Blocked by required conditions
Validation / Build (push) Blocked by required conditions
Validation / Required (push) Blocked by required conditions
* Clarify editable install behavior with setuptools and uv
Following a user question in uv (https://github.com/astral-sh/uv/issues/15652 ), clarify the documentation around editables.
From my uv experience, import hooks breaking static type checkers is almost exclusively a setuptools problem (see e.g. https://github.com/astral-sh/uv/issues/1708#issuecomment-2174463476 and https://github.com/astral-sh/uv/issues/3898 ), so I clarified the docs that this is update using uv with setuptools.
* Update docs/import-resolution.md
Co-authored-by: DetachHead <57028336+DetachHead@users.noreply.github.com>
* Remove "generally"
---------
Co-authored-by: DetachHead <57028336+DetachHead@users.noreply.github.com>
2025-09-04 00:13:18 -07:00
Bill Schnurr
d64f3fa0a8
pull-pylance-with-pyright-1.1.404-20250902-204731 ( #10885 )
...
Validation / Typecheck (push) Has been cancelled
Validation / Style (push) Has been cancelled
Run mypy_primer on push / Run mypy_primer on push (push) Has been cancelled
Validation / Test macos-latest (push) Has been cancelled
Validation / Test ubuntu-latest (push) Has been cancelled
Validation / Test windows-latest (push) Has been cancelled
Validation / Build (push) Has been cancelled
Validation / Required (push) Has been cancelled
Co-authored-by: Azure Piplines <41898282+github-actions[bot]@users.noreply.github.com>
2025-09-02 14:20:15 -07:00
Bill Schnurr
b7c1e79f41
pull-pylance-with-pyright-1.1.404-20250902-173744 ( #10882 )
...
Co-authored-by: Azure Piplines <41898282+github-actions[bot]@users.noreply.github.com>
2025-09-02 12:21:18 -07:00
Eric Traut
7ee305848a
Published 1.1.405.
Run mypy_primer on push / Run mypy_primer on push (push) Waiting to run
Validation / Typecheck (push) Waiting to run
Validation / Style (push) Waiting to run
Validation / Test macos-latest (push) Blocked by required conditions
Validation / Test ubuntu-latest (push) Blocked by required conditions
Validation / Test windows-latest (push) Blocked by required conditions
Validation / Build (push) Blocked by required conditions
Validation / Required (push) Blocked by required conditions
2025-09-02 10:04:19 -07:00
Eric Traut
bb13689b27
Fixed bug that results in false positive "reportPossiblyUnboundVariable" error on keyword argument names. This addresses #10811 . ( #10876 )
Run mypy_primer on push / Run mypy_primer on push (push) Has been cancelled
Validation / Typecheck (push) Has been cancelled
Validation / Style (push) Has been cancelled
Validation / Test macos-latest (push) Has been cancelled
Validation / Test ubuntu-latest (push) Has been cancelled
Validation / Test windows-latest (push) Has been cancelled
Validation / Build (push) Has been cancelled
Validation / Required (push) Has been cancelled
2025-08-31 20:49:32 -07:00
Eric Traut
539aabd639
Updated error message for NewType used in isinstance check. I don't think this makes things clearer, but it is technically more correct. Addresses #10601 .
2025-08-31 20:19:05 -07:00
Eric Traut
ce16aa18a9
Changed the evaluated type of __class__ from type[Self] to type[<Enclosing class]. This addresses #10685 . ( #10874 )
2025-08-31 19:47:16 -07:00
Eric Traut
099954d0b5
Added optimization that reduces the number of Uri objects that need to be created during type evaluation. This is an attempt to address #10832 . ( #10872 )
2025-08-31 13:47:23 -07:00
Eric Traut
93c98d7bbd
Fixed bug that causes a false negative when using unquoted types in a TypedDict functional class definition if the types are forward declared. This addresses #10612 . ( #10869 )
2025-08-30 21:02:11 -07:00
Eric Traut
29bb1b05e3
Fixed bug that resulted in false negative when backslash followed by line feed occurs at end of file. This addresses #10814 . ( #10867 )
2025-08-30 20:36:31 -07:00
Eric Traut
f3ab90ba47
Fixed false negative when a keyword parameter in a child class method overrides a method with a **kwargs in the parent and the type is incompatible. This addresses #10815 . ( #10866 )
2025-08-30 17:19:48 -07:00
Eric Traut
c407ded0ba
Fixed regression introduced in 1.1.343 that results in nondeterministic (order-dependent) type evaluation under certain circumstances involving recursive type aliases. This addresses #10850 . ( #10865 )
2025-08-30 15:39:43 -07:00
Eric Traut
d97565a193
Revert "Added support for tracking multiple constraint sets when performing protocol matching. This allows protocols with overloaded methods to contribute independent constraint sets. This addresses #9835 . ( #9864 )" ( #10863 )
...
This reverts commit 131f56d44f .
This addresses #10849
2025-08-30 15:05:02 -07:00
Eric Traut
aff9b4f3ab
Fixed bug that contributes to out-of-memory crashes under certain circumstances where a module's transitive import graph is very large and may not fit within the available heap space. ( #10862 )
2025-08-30 13:05:29 -07:00
dependabot[bot]
7395f59ffe
Bump tmp from 0.2.3 to 0.2.5 in /packages/vscode-pyright ( #10824 )
...
Bumps [tmp](https://github.com/raszi/node-tmp ) from 0.2.3 to 0.2.5.
- [Changelog](https://github.com/raszi/node-tmp/blob/master/CHANGELOG.md )
- [Commits](https://github.com/raszi/node-tmp/compare/v0.2.3...v0.2.5 )
---
updated-dependencies:
- dependency-name: tmp
dependency-version: 0.2.5
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Eric Traut <eric@traut.com>
2025-08-30 12:54:08 -07:00