-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
3 additions
and
46 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
8 changes: 0 additions & 8 deletions
8
{{cookiecutter.project_name}}/src/{{cookiecutter.__project_slug}}/_compat/__init__.py
This file was deleted.
Oops, something went wrong.
26 changes: 0 additions & 26 deletions
26
{{cookiecutter.project_name}}/src/{{cookiecutter.__project_slug}}/_compat/typing.py
This file was deleted.
Oops, something went wrong.
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,14 +1,7 @@ | ||
from __future__ import annotations | ||
|
||
import {{ cookiecutter.__project_slug }} as m | ||
import {{ cookiecutter.__project_slug }}._compat.typing as typing_backports | ||
|
||
|
||
def test_version(): | ||
assert m.__version__ | ||
|
||
|
||
def test_has_typing(): | ||
assert hasattr(typing_backports, "TypeAlias") | ||
assert hasattr(typing_backports, "Self") | ||
assert hasattr(typing_backports, "assert_never") |