Skip to content

Commit

Permalink
Merge branch 'main' into uri-provenance
Browse files Browse the repository at this point in the history
  • Loading branch information
cthoyt authored Jan 16, 2025
2 parents 9bc6199 + 10804dd commit aee2ec4
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/pyobo/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import re

import pystow
from typing_extensions import TypedDict
from typing_extensions import NotRequired, TypedDict

__all__ = [
"DATABASE_DIRECTORY",
Expand Down Expand Up @@ -130,9 +130,9 @@ class SlimGetOntologyKwargs(TypedDict):
ontology is requested.
"""

strict: bool
force: bool
force_process: bool
strict: NotRequired[bool]
force: NotRequired[bool]
force_process: NotRequired[bool]


class GetOntologyKwargs(SlimGetOntologyKwargs):
Expand All @@ -141,9 +141,9 @@ class GetOntologyKwargs(SlimGetOntologyKwargs):
This dictionary doesn't contain ``prefix`` since this is always explicitly handled.
"""

version: str | None
cache: bool
use_tqdm: bool
version: NotRequired[str | None]
cache: NotRequired[bool]
use_tqdm: NotRequired[bool]


def check_should_force(data: GetOntologyKwargs) -> bool:
Expand Down

0 comments on commit aee2ec4

Please sign in to comment.