Skip to content

Commit

Permalink
remove use of |
Browse files Browse the repository at this point in the history
  • Loading branch information
tusharsadhwani committed Dec 23, 2024
1 parent cb9d48a commit 1e105f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/blib2to3/pgen2/tokenize.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def transform_whitespace(
return token


def tokenize(source: str, grammar: Grammar | None = None) -> Iterator[TokenInfo]:
def tokenize(source: str, grammar: Optional[Grammar] = None) -> Iterator[TokenInfo]:
async_keywords = False if grammar is None else grammar.async_keywords

lines = source.split("\n")
Expand Down

0 comments on commit 1e105f8

Please sign in to comment.