make all arguments to KwargInfo except name and type keyword only

To make them easier to understand in practice
pull/8853/head
Dylan Baker 4 years ago committed by Daniel Mensinger
parent 4dc3f2af63
commit 5d81392c67
  1. 3
      mesonbuild/interpreterbase.py

@ -427,7 +427,8 @@ class KwargInfo(T.Generic[_T]):
"""
def __init__(self, name: str, types: T.Union[T.Type[_T], T.Tuple[T.Type[_T], ...], ContainerTypeInfo],
required: bool = False, listify: bool = False, default: T.Optional[_T] = None,
*, required: bool = False, listify: bool = False,
default: T.Optional[_T] = None,
since: T.Optional[str] = None, deprecated: T.Optional[str] = None):
self.name = name
self.types = types

Loading…
Cancel
Save