Skip to content

Commit

Permalink
Update for black 2024
Browse files Browse the repository at this point in the history
  • Loading branch information
cthoyt committed Feb 4, 2024
1 parent cd31580 commit 253234d
Showing 1 changed file with 25 additions and 42 deletions.
67 changes: 25 additions & 42 deletions src/curies/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1034,8 +1034,7 @@ def is_uri(self, s: str) -> bool:
@overload
def compress_or_standardize(
self, uri_or_curie: str, *, strict: Literal[True] = True, passthrough: bool = False
) -> str:
...
) -> str: ...

# docstr-coverage:excused `overload`
@overload
Expand All @@ -1045,8 +1044,7 @@ def compress_or_standardize(
*,
strict: Literal[False] = False,
passthrough: Literal[True] = True,
) -> str:
...
) -> str: ...

# docstr-coverage:excused `overload`
@overload
Expand All @@ -1056,8 +1054,7 @@ def compress_or_standardize(
*,
strict: Literal[False] = False,
passthrough: Literal[False] = False,
) -> Optional[str]:
...
) -> Optional[str]: ...

def compress_or_standardize(
self, uri_or_curie: str, *, strict: bool = False, passthrough: bool = False
Expand Down Expand Up @@ -1114,22 +1111,21 @@ def compress_strict(self, uri: str) -> str:

# docstr-coverage:excused `overload`
@overload
def compress(self, uri: str, *, strict: Literal[True] = True, passthrough: bool = False) -> str:
...
def compress(
self, uri: str, *, strict: Literal[True] = True, passthrough: bool = False
) -> str: ...

# docstr-coverage:excused `overload`
@overload
def compress(
self, uri: str, *, strict: Literal[False] = False, passthrough: Literal[True] = True
) -> str:
...
) -> str: ...

# docstr-coverage:excused `overload`
@overload
def compress(
self, uri: str, *, strict: Literal[False] = False, passthrough: Literal[False] = False
) -> Optional[str]:
...
) -> Optional[str]: ...

def compress(
self, uri: str, *, strict: bool = False, passthrough: bool = False
Expand Down Expand Up @@ -1224,8 +1220,7 @@ def is_curie(self, s: str) -> bool:
@overload
def expand_or_standardize(
self, curie_or_uri: str, *, strict: Literal[True] = True, passthrough: bool = False
) -> str:
...
) -> str: ...

# docstr-coverage:excused `overload`
@overload
Expand All @@ -1235,8 +1230,7 @@ def expand_or_standardize(
*,
strict: Literal[False] = False,
passthrough: Literal[True] = True,
) -> str:
...
) -> str: ...

# docstr-coverage:excused `overload`
@overload
Expand All @@ -1246,8 +1240,7 @@ def expand_or_standardize(
*,
strict: Literal[False] = False,
passthrough: Literal[False] = False,
) -> Optional[str]:
...
) -> Optional[str]: ...

def expand_or_standardize(
self, curie_or_uri: str, *, strict: bool = False, passthrough: bool = False
Expand Down Expand Up @@ -1304,22 +1297,21 @@ def expand_strict(self, curie: str) -> str:

# docstr-coverage:excused `overload`
@overload
def expand(self, curie: str, *, strict: Literal[True] = True, passthrough: bool = False) -> str:
...
def expand(
self, curie: str, *, strict: Literal[True] = True, passthrough: bool = False
) -> str: ...

# docstr-coverage:excused `overload`
@overload
def expand(
self, curie: str, *, strict: Literal[False] = False, passthrough: Literal[True] = True
) -> str:
...
) -> str: ...

# docstr-coverage:excused `overload`
@overload
def expand(
self, curie: str, *, strict: Literal[False] = False, passthrough: Literal[False] = False
) -> Optional[str]:
...
) -> Optional[str]: ...

def expand(
self, curie: str, *, strict: bool = False, passthrough: bool = False
Expand Down Expand Up @@ -1459,22 +1451,19 @@ def expand_pair_all(self, prefix: str, identifier: str) -> Optional[Collection[s
@overload
def standardize_prefix(
self, prefix: str, *, strict: Literal[True] = True, passthrough: bool = False
) -> str:
...
) -> str: ...

# docstr-coverage:excused `overload`
@overload
def standardize_prefix(
self, prefix: str, *, strict: Literal[False] = False, passthrough: Literal[True] = True
) -> str:
...
) -> str: ...

# docstr-coverage:excused `overload`
@overload
def standardize_prefix(
self, prefix: str, *, strict: Literal[False] = False, passthrough: Literal[False] = False
) -> Optional[str]:
...
) -> Optional[str]: ...

def standardize_prefix(
self, prefix: str, *, strict: bool = False, passthrough: bool = False
Expand Down Expand Up @@ -1518,22 +1507,19 @@ def standardize_prefix(
@overload
def standardize_curie(
self, curie: str, *, strict: Literal[True] = True, passthrough: bool = False
) -> str:
...
) -> str: ...

# docstr-coverage:excused `overload`
@overload
def standardize_curie(
self, curie: str, *, strict: Literal[False] = False, passthrough: Literal[True] = True
) -> str:
...
) -> str: ...

# docstr-coverage:excused `overload`
@overload
def standardize_curie(
self, curie: str, *, strict: Literal[False] = False, passthrough: Literal[False] = False
) -> Optional[str]:
...
) -> Optional[str]: ...

def standardize_curie(
self, curie: str, *, strict: bool = False, passthrough: bool = False
Expand Down Expand Up @@ -1580,22 +1566,19 @@ def standardize_curie(
@overload
def standardize_uri(
self, uri: str, *, strict: Literal[True] = True, passthrough: bool = False
) -> str:
...
) -> str: ...

# docstr-coverage:excused `overload`
@overload
def standardize_uri(
self, uri: str, *, strict: Literal[False] = False, passthrough: Literal[True] = True
) -> str:
...
) -> str: ...

# docstr-coverage:excused `overload`
@overload
def standardize_uri(
self, uri: str, *, strict: Literal[False] = False, passthrough: Literal[False] = False
) -> Optional[str]:
...
) -> Optional[str]: ...

def standardize_uri(
self, uri: str, *, strict: bool = False, passthrough: bool = False
Expand Down

0 comments on commit 253234d

Please sign in to comment.