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
@JelleZijlstra, does #76 mean the non-class syntax for typing.NamedTuple is also now disallowed?
I don't think so, we allow assignments with call nodes on the RHS because there are various odd cases where they're needed. In particular, we have some non-class TypedDict definitions that use keys like "in", because the class version would be a SyntaxError.
We could add a check for namedtuple syntax. Warn about
collections.namedtuple
in stubs, possibly also about using the non-class syntax.The text was updated successfully, but these errors were encountered: