Skip to content

Commit

Permalink
revert reformatting
Browse files Browse the repository at this point in the history
  • Loading branch information
jdidion committed Feb 22, 2024
1 parent dada4b4 commit fec0564
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions fgpyo/util/inspect.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion fgpyo/util/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" },
Expand Down

0 comments on commit fec0564

Please sign in to comment.