-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #118 from Sachaa-Thanasius/feature/just-annotations
Add type annotations
- Loading branch information
Showing
27 changed files
with
627 additions
and
248 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
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,19 @@ | ||
[tool.black] | ||
line-length = 79 | ||
target-version = ["py38"] | ||
|
||
[tool.isort] | ||
profile = "black" | ||
line_length = 79 | ||
force_single_line = true | ||
|
||
[tool.pyright] | ||
include = ["src/rfc3986"] | ||
ignore = ["tests"] | ||
pythonVersion = "3.8" | ||
typeCheckingMode = "strict" | ||
|
||
reportPrivateUsage = "none" | ||
reportImportCycles = "warning" | ||
reportPropertyTypeMismatch = "warning" | ||
reportUnnecessaryTypeIgnoreComment = "warning" |
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,19 @@ | ||
import sys | ||
import typing as t | ||
|
||
__all__ = ("Self",) | ||
|
||
if sys.version_info >= (3, 11): # pragma: no cover | ||
from typing import Self | ||
elif t.TYPE_CHECKING: | ||
from typing_extensions import Self | ||
else: # pragma: no cover | ||
|
||
class _PlaceholderMeta(type): | ||
# This is meant to make it easier to debug the presence of placeholder | ||
# classes. | ||
def __repr__(self): | ||
return f"placeholder for typing.{self.__name__}" | ||
|
||
class Self(metaclass=_PlaceholderMeta): | ||
"""Placeholder for "typing.Self".""" |
Oops, something went wrong.