diff --git a/fgpyo/util/inspect.py b/fgpyo/util/inspect.py index 1f378e14..01e0b74c 100644 --- a/fgpyo/util/inspect.py +++ b/fgpyo/util/inspect.py @@ -68,7 +68,7 @@ def split_at_given_level( def _get_parser( - cls: Type, type_: TypeAlias, parsers: Optional[Dict[type, Callable[[str], Any]]] = None, + cls: Type, type_: TypeAlias, parsers: Optional[Dict[type, Callable[[str], Any]]] = None ) -> partial: """Attempts to find a parser for a provided type. @@ -252,7 +252,7 @@ def dict_parse(dict_string: str) -> Dict[Any, Any]: def attr_from( - cls: Type, kwargs: Dict[str, str], parsers: Optional[Dict[type, Callable[[str], Any]]] = None, + cls: Type, kwargs: Dict[str, str], parsers: Optional[Dict[type, Callable[[str], Any]]] = None ) -> Any: """Builds an attr class from key-word arguments diff --git a/fgpyo/util/types.py b/fgpyo/util/types.py index 7dafe0b1..5af7e08a 100644 --- a/fgpyo/util/types.py +++ b/fgpyo/util/types.py @@ -110,7 +110,7 @@ def make_union_parser(union: Type[UnionType], parsers: Iterable[Callable[[str], def _make_literal_parser_worker( - literal: Type[LiteralType], parsers: Iterable[Callable[[str], LiteralType]], value: str, + literal: Type[LiteralType], parsers: Iterable[Callable[[str], LiteralType]], value: str ) -> LiteralType: """Worker function behind literal parsing. Iterates through possible literals and returns the value produced by the first literal that matches expectation. diff --git a/pyproject.toml b/pyproject.toml index c4b82224..9ccf16c4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -35,8 +35,7 @@ typing_extensions = { version = ">=3.7.4", python = "<3.12" } docs = ["sphinx", "sphinx_rtd_theme"] [tool.poetry.dev-dependencies] -black = "20.8b1" -click = "<8.1.0" +black = ">=19.10b" flake8 = [ { version = ">=5.0.0", python = "<3.12.0" }, { version = ">=6.1.0", python = ">=3.12.0" },