-
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.
iwana-20220126T2212-typing: checkpoint 20230910T155719 - SQ
[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
33 changed files
with
489 additions
and
228 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
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
Oops, something went wrong.