Skip to content

Add typing to Scanner#382

Open
Alunderin wants to merge 1 commit intoexecutablebooks:masterfrom
Alunderin:master
Open

Add typing to Scanner#382
Alunderin wants to merge 1 commit intoexecutablebooks:masterfrom
Alunderin:master

Conversation

@Alunderin
Copy link

Changes state_inline.Scanner into a typing.NamedTuple instead of a collections.namedtuple. They should be functionally equivalent except that the former has typing for its members while the latter does not.

I tend to use strict type checking for my own projects so it'd be nice if Pyright didn't freak out when I try to access the result of scanDelims without using typing.cast.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant