-
Notifications
You must be signed in to change notification settings - Fork 252
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Document
markers.default_environment()
- Loading branch information
1 parent
7698237
commit 701cc51
Showing
8 changed files
with
146 additions
and
26 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
furo | ||
sphinx-toolbox | ||
typing-extensions>=4.1.0; python_version < "3.9" |
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,35 @@ | ||
import sys | ||
import typing | ||
|
||
if sys.version_info[:2] >= (3, 8): # pragma: no cover | ||
from typing import Literal | ||
elif typing.TYPE_CHECKING: # pragma: no cover | ||
from typing_extensions import Literal | ||
else: # pragma: no cover | ||
try: | ||
from typing_extensions import Literal | ||
except ImportError: | ||
|
||
class Literal: | ||
def __init_subclass__(*_args, **_kwargs): | ||
pass | ||
|
||
|
||
if sys.version_info[:2] >= (3, 9): # pragma: no cover | ||
from typing import TypedDict | ||
elif typing.TYPE_CHECKING: # pragma: no cover | ||
from typing_extensions import TypedDict | ||
else: # pragma: no cover | ||
try: | ||
from typing_extensions import TypedDict | ||
except ImportError: | ||
|
||
class TypedDict: | ||
def __init_subclass__(*_args, **_kwargs): | ||
pass | ||
|
||
|
||
__all__ = [ | ||
"Literal", | ||
"TypedDict", | ||
] |
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