mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-16 00:37:11 +08:00
Fix CI (#1108)
* Fix CI
* Fix CI
* Fix CI
* Fix CI
* APply black
* APply black
* Fix mypy
* Fix mypy errors in django-stubs
* Fix format
* Fix plugin
* Do not patch builtins by default
* Fix mypy
* Only run mypy on 3.10 for now
* Only run mypy on 3.10 for now
* WHAT THE HELL
* Enable strict mode in mypy
* Enable strict mode in mypy
* Fix tests
* Fix tests
* Debug
* Debug
* Fix tests
* Fix tests
* Add TYPE_CHECKING debug
* Caching maybe?
* Caching maybe?
* Try explicit `${{ matrix.python-version }}`
* Remove debug
* Fix typing
* Finally
This commit is contained in:
@@ -2,11 +2,7 @@
|
||||
- case: annotated_should_not_iterfere
|
||||
main: |
|
||||
from dataclasses import dataclass
|
||||
import sys
|
||||
if sys.version_info < (3, 9):
|
||||
from typing_extensions import Annotated
|
||||
else:
|
||||
from typing import Annotated
|
||||
from typing_extensions import Annotated
|
||||
|
||||
class IntegerType:
|
||||
def __init__(self, min_value: int, max_value: int) -> None:
|
||||
|
||||
@@ -58,8 +58,6 @@
|
||||
mypy_config: |
|
||||
[mypy.plugins.django-stubs]
|
||||
django_settings_module = mysettings
|
||||
env:
|
||||
- MYPYPATH=./extras
|
||||
files:
|
||||
- path: extras/extra_module.py
|
||||
content: |
|
||||
|
||||
Reference in New Issue
Block a user