Skip to content

Commit fec0564

Browse files
committed
revert reformatting
1 parent dada4b4 commit fec0564

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

fgpyo/util/inspect.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def split_at_given_level(
6868

6969

7070
def _get_parser(
71-
cls: Type, type_: TypeAlias, parsers: Optional[Dict[type, Callable[[str], Any]]] = None,
71+
cls: Type, type_: TypeAlias, parsers: Optional[Dict[type, Callable[[str], Any]]] = None
7272
) -> partial:
7373
"""Attempts to find a parser for a provided type.
7474
@@ -252,7 +252,7 @@ def dict_parse(dict_string: str) -> Dict[Any, Any]:
252252

253253

254254
def attr_from(
255-
cls: Type, kwargs: Dict[str, str], parsers: Optional[Dict[type, Callable[[str], Any]]] = None,
255+
cls: Type, kwargs: Dict[str, str], parsers: Optional[Dict[type, Callable[[str], Any]]] = None
256256
) -> Any:
257257
"""Builds an attr class from key-word arguments
258258

fgpyo/util/types.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def make_union_parser(union: Type[UnionType], parsers: Iterable[Callable[[str],
110110

111111

112112
def _make_literal_parser_worker(
113-
literal: Type[LiteralType], parsers: Iterable[Callable[[str], LiteralType]], value: str,
113+
literal: Type[LiteralType], parsers: Iterable[Callable[[str], LiteralType]], value: str
114114
) -> LiteralType:
115115
"""Worker function behind literal parsing. Iterates through possible literals and
116116
returns the value produced by the first literal that matches expectation.

pyproject.toml

+1-2
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@ typing_extensions = { version = ">=3.7.4", python = "<3.12" }
3535
docs = ["sphinx", "sphinx_rtd_theme"]
3636

3737
[tool.poetry.dev-dependencies]
38-
black = "20.8b1"
39-
click = "<8.1.0"
38+
black = ">=19.10b"
4039
flake8 = [
4140
{ version = ">=5.0.0", python = "<3.12.0" },
4241
{ version = ">=6.1.0", python = ">=3.12.0" },

0 commit comments

Comments
 (0)