Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
cthoyt committed Nov 30, 2023
1 parent c7585aa commit 4198564
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
8 changes: 7 additions & 1 deletion src/pyobo/gilda_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,13 @@ def get_grounder(


def _fast_term(
*, text: str, prefix: str, identifier: str, name: str, status: str, organism: Optional[str] = None
*,
text: str,
prefix: str,
identifier: str,
name: str,
status: str,
organism: Optional[str] = None,
) -> gilda.term.Term:
return gilda.term.Term(
norm_text=normalize(text),
Expand Down
2 changes: 1 addition & 1 deletion src/pyobo/sources/ror.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def iterate_ror_terms(*, force: bool = False) -> Iterable[Term]:
)

for label in record.get("labels", []):
label = label["label"] # there's a language availabel in this dict too
label = label["label"] # there's a language availabel in this dict too
term.append_synonym(label)
if label.startswith("The "):
term.append_synonym(label.removeprefix("The "))
Expand Down
2 changes: 1 addition & 1 deletion src/pyobo/struct/reference.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def validate_identifier(cls, values): # noqa

@classmethod
def auto(cls, prefix: str, identifier: str) -> "Reference":
"""Create a reference and auto-populate its name."""
"""Create a reference and autopopulate its name."""
from ..api import get_name

name = get_name(prefix, identifier)
Expand Down

0 comments on commit 4198564

Please sign in to comment.