-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update dependency pyright to ^1.1.382 #2575
Conversation
fc979df
to
989a587
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #2575 +/- ##
==========================================
- Coverage 90.20% 90.19% -0.01%
==========================================
Files 256 256
Lines 15690 15691 +1
==========================================
Hits 14153 14153
- Misses 1537 1538 +1 ☔ View full report in Codecov by Sentry. |
6faff36
to
85a0290
Compare
560f900
to
56b2653
Compare
1e0c5c2
to
dfa57d8
Compare
dfa57d8
to
4cb3645
Compare
6992963
to
1a4e31c
Compare
1a4e31c
to
a0e691a
Compare
Edited/Blocked NotificationRenovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR. You can manually request rebase by checking the rebase/retry box above. |
This PR contains the following updates:
^1.1.377
->^1.1.382
Release Notes
Microsoft/pyright (pyright)
v1.1.382
: Published 1.1.382Compare Source
Bug Fixes:
type
is used within a loop.Final
variable in a protocol and a NamedTuple or frozen dataclass as a concrete class.Never
to a type variable in a contravariant context.TypeForm
as the second argument to anisinstance
orissubclass
call.TypeForm
is used as the first argument toisinstance
.__call__
method and a__new__
or__init__
method that provides a different bidirectional type inference context for parameters.Enhancements:
len(t) == L
type guard pattern to handle the negative narrowing case where tuplet
has a minimum length ofL
. In this case, the narrowed type can be computed whereas previously it was left unnarrowed.reportUnnecessaryComparison
to cover more cases involvingis
andis not
operators.v1.1.381
: Published 1.1.381Compare Source
Bug Fixes:
type(Any)
to typetype[Any]
.TypeIs
user-defined type guard in certain cases when variable type is a union.isinstance
in the negative case when usingtype
as a filter.NoReturn
callable with a function decorator applied.TypeIs
intersectstype[A]
withtype[B]
. Previously, pyright was producing<subclass of type[A] and type[B]>
but now producestype[<subclass of A and B>]
.venvPath
specified in language server settings to be ignored.__set__
method when assigning to a class variable that is not a descriptor object.Self
in its type definition.Behavior Changes:
TypeForm
based on feedback to draft PEP 747.Enhancements:
reportUnnecessaryIsinstance
check to report cases where anisinstance
orissubclass
call always evaluates toFalse
.v1.1.380
: Published 1.1.380Compare Source
Bug Fixes:
super()
and the second argument istype[Self]
.defaultdict
) to a callable type.match
statement.--verifytypes
and the function has a decorator applied that uses a ParamSpec.isinstance
orTypeIs
when the filter type (the second argument toisinstance
) is a subclass oftype
.in
(containment) operator when the filter includes class objects (instances oftype
).x is ...
(ellipsis) type guard pattern.TypeAlias
qualifier.TypeIs
when it is used with aCallable
type form.isinstance
type narrowing code involving callablesEnhancements:
ABCMeta
. Classes instantiated from such metaclasses are now treated as abstract.Behavior Changes:
**
) when used in an argument expression for a call and the operand is a TypedDict. It now takes into account the fact that a (non-closed) TypedDict can contain additional keys withobject
values. This new behavior is consistent with mypy.Never
._AnnotatedAlias
to be used with an implicit__getitem__
call even though this type is not documented or declared in typeshed.from __future__
import statement, which has no meaning in stub files.callable
type guard pattern. Now that typeshed defines this with aTypeIs
, we no longer require custom logic here.v1.1.379
: Published 1.1.379Compare Source
Bug Fixes:
Callable
special form is used in a value expression.Enhancements:
TypeForm
special form.v1.1.378
: Published 1.1.378Compare Source
Bug Fixes:
functools.partial
in some cases. This same issue also causes symbols accessed in these arg expressions to not be marked as referenced.__call__
method whosecls
parameter is annotated withtype[T]
.reportIncompatibleMethodOverride
diagnostic being reported in the wrong location in some cases involving decorators.Behavior Changes:
disableBytesTypePromotions
setting fromfalse
totrue
. It has been over two years since PEP 688 was accepted, so it's time for us to stop treatingbytes
as an alias forbytes | bytearray | memoryview
. This is a breaking change and may require an update to the pyright configuration for some code bases.Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.