-
Notifications
You must be signed in to change notification settings - Fork 560
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DO NOT REVIEW] Add a bunch of typing
This is a branch I'm maintaing with a bunch of typing, I'm planning to integrate it with master in parts, anyone is welcome to have a look but most of what is happening here is subject to change.
- Loading branch information
Showing
65 changed files
with
1,621 additions
and
707 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 1,23 @@ | ||
# import sys | ||
# from typing import TYPE_CHECKING, Optional, Tuple, TypeVar | ||
|
||
# if sys.version_info >= (3, 10): | ||
# from typing import TypeAlias | ||
# else: | ||
# from typing_extensions import TypeAlias | ||
|
||
# if TYPE_CHECKING: | ||
# from rdflib.graph import Graph | ||
# from rdflib.term import IdentifiedNode, Identifier | ||
|
||
# _SubjectType: TypeAlias = "IdentifiedNode" | ||
# _PredicateType: TypeAlias = "IdentifiedNode" | ||
# _ObjectType: TypeAlias = "Identifier" | ||
|
||
# _TripleType = Tuple["_SubjectType", "_PredicateType", "_ObjectType"] | ||
# _QuadType = Tuple["_SubjectType", "_PredicateType", "_ObjectType", "Graph"] | ||
# _TriplePatternType = Tuple[ | ||
# Optional["_SubjectType"], Optional["_PredicateType"], Optional["_ObjectType"] | ||
# ] | ||
|
||
# _GraphT = TypeVar("_GraphT", bound="Graph") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 1,4 @@ | ||
import json | ||
import logging | ||
import sys | ||
import warnings | ||
from functools import lru_cache | ||
from pathlib import Path | ||
|
Oops, something went wrong.