Try to fix NoneType

Because mypy doesn't like the type alias.
pull/9183/head
Dylan Baker 3 years ago committed by GitHub
parent ce392acad4
commit b4bc8464e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      mesonbuild/interpreter/type_checking.py

@ -11,7 +11,7 @@ from ..interpreterbase.decorators import KwargInfo, ContainerTypeInfo
from ..mesonlib import FileMode, MachineChoice
# Helper definition for type checks that are `Optional[T]`
NoneType = type(None)
NoneType: T.Type[None] = type(None)
def in_set_validator(choices: T.Set[str]) -> T.Callable[[str], T.Optional[str]]:

Loading…
Cancel
Save