You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Furthermore, this is important for compatibility with copy.replace. In python/typeshed#12262 we're adding a protocol that requires replaceable objects implement:
__replace__
was added ontoNamedTuple
as a part of 3.13 related changes, however, instead of returningNone
, it should returnSelf
. Looking in cpython we can see this is the case.Furthermore, this is important for compatibility with
copy.replace
. In python/typeshed#12262 we're adding a protocol that requires replaceable objects implement:With
namedtuple.__replace__
returningNone
, users will return into false positives here, when in reality it should work just fine.The text was updated successfully, but these errors were encountered: