improve coverage

This commit is contained in:
sigma67 2024-01-02 22:25:45 +01:00
commit d4bea93414
No known key found for this signature in database
GPG key ID: 1C314227DF0103D0
6 changed files with 18 additions and 27 deletions

View file

@ -71,12 +71,12 @@ FRAMEWORK_MUTATIONS = ["frameworkUpdates", "entityBatchUpdate", "mutations"]
@overload
def nav(root: Dict[str, Any], items: List[Any], none_if_absent: Literal[False] = False) -> Any:
...
"""overload for mypy only"""
@overload
def nav(root: Dict, items: List[Any], none_if_absent: Literal[True] = True) -> Optional[Any]:
...
"""overload for mypy only"""
def nav(root: Dict, items: List[Any], none_if_absent: bool = False) -> Optional[Any]: