PyCQA / flake8

flake8 is a python tool that glues together pycodestyle, pyflakes, mccabe, and third-party plugins to check the style and quality of some python code.

Home Page:https://flake8.pycqa.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support for union type hints using "bitwise or"

hakonhagland opened this issue · comments

Does flake8 support union type hints using "bitwise or", see https://docs.python.org/3/library/stdtypes.html#types-union

For this signature:

def __init__(self, path: Path, template_name: str|None) -> None:

I get error like:

E227 missing whitespace around bitwise or shift operator

Flake8 does not implement any error codes and you haven't provided any information about the version of flake8. Please read the issue template