Skip to content

Commit c8edadc

Browse files
committed
ack complexity
1 parent 76fdb11 commit c8edadc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/cloudformation_cli_python_lib/recast.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@ def _recast_primitive(cls: Any, k: str, v: str) -> Any:
7979
return cls(v)
8080

8181

82-
def _field_to_type(field: Any, key: str, classes: Dict[str, Any]) -> Any:
82+
# yes, introspecting type hints is ugly, but hopefully only needed temporarily
83+
def _field_to_type(field: Any, key: str, classes: Dict[str, Any]) -> Any: # noqa: C901
8384
if field in [int, float, str, bool, typing.Any]:
8485
return field
8586
# If it's a ForwardRef we need to find base type

0 commit comments

Comments
 (0)