django-stubs-ext@0.2.0

This commit is contained in:
sobolevn
2021-04-14 12:59:57 +03:00
parent ee58b18f15
commit 488d17b65c
9 changed files with 18 additions and 15 deletions

View File

@@ -11,7 +11,7 @@ dependencies = [
setup(
name="django-stubs-ext",
version="0.1.0",
version="0.2.0",
description="Monkey-patching and extensions for django-stubs",
long_description=readme,
long_description_content_type="text/markdown",
@@ -19,6 +19,8 @@ setup(
url="https://github.com/typeddjango/django-stubs",
author="Simula Proxy",
author_email="3nki.nam.shub@gmail.com",
maintainer="Nikita Sobolev",
maintainer_email="mail@sobolevn.me",
py_modules=[],
python_requires=">=3.6",
install_requires=dependencies,
@@ -35,6 +37,7 @@ setup(
"Framework :: Django :: 2.2",
"Framework :: Django :: 3.0",
"Framework :: Django :: 3.1",
"Framework :: Django :: 3.2",
],
project_urls={
"Release notes": "https://github.com/typeddjango/django-stubs/releases",

View File

@@ -71,10 +71,11 @@ def test_patched_version_specific(
assert el.cls[int] is el.cls
def test_patched_mypy_builtins(make_generic_classes: _MakeGenericClasses) -> None:
def test_patched_mypy_builtins(
make_generic_classes: _MakeGenericClasses,
) -> None:
"""Ensures that we properly patch builtins with `mypy` specific helpers."""
make_generic_classes()
assert builtins.reveal_type
assert builtins.reveal_locals
reveal_type(reveal_locals) # noqa: F821