block_token.List.start
is both a classmethod and attribute
#205
Labels
block_token.List.start
is both a classmethod and attribute
#205
While looking through the codebase to understand it (and maybe write some type stubs), I noticed that
block_token.List
has both a classmethodstart()
, and an attribute with that same name. This does happen to work, but it's rather awkward, and might confuse various tools (or humans).The classmethod seems to be common to all the token classes, so it seems better to rename the attribute form. (
ordinal
perhaps?) Either way it's backwards incompatible, though a custom descriptor class could be used temporarily to produce warnings.The text was updated successfully, but these errors were encountered: