mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-10 22:11:54 +08:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3881df188c | ||
|
|
b8379d4fe6 | ||
|
|
caa0e60743 |
35
.github/ISSUE_TEMPLATE/bug.md
vendored
Normal file
35
.github/ISSUE_TEMPLATE/bug.md
vendored
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
---
|
||||||
|
name: Bug
|
||||||
|
about: Create a report of something is not working
|
||||||
|
labels: 'bug'
|
||||||
|
---
|
||||||
|
|
||||||
|
# Bug report
|
||||||
|
|
||||||
|
<!--
|
||||||
|
Hi, thanks for submitting a bug. We appreciate that.
|
||||||
|
|
||||||
|
But, we will need some information about what's wrong to help you.
|
||||||
|
-->
|
||||||
|
|
||||||
|
## What's wrong
|
||||||
|
|
||||||
|
<!--
|
||||||
|
Describe what is not working.
|
||||||
|
|
||||||
|
Please, attach a traceback.
|
||||||
|
We would also appreciate a failing test case.
|
||||||
|
That is EXTREMELY helpful!
|
||||||
|
-->
|
||||||
|
|
||||||
|
## How is that should be
|
||||||
|
|
||||||
|
<!-- Describe how it should work. -->
|
||||||
|
|
||||||
|
## System information
|
||||||
|
|
||||||
|
- OS:
|
||||||
|
- `python` version:
|
||||||
|
- `django` version:
|
||||||
|
- `mypy` version:
|
||||||
|
- `django-stubs` version:
|
||||||
29
.github/pull_request_template.md
vendored
Normal file
29
.github/pull_request_template.md
vendored
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
# I have made things!
|
||||||
|
|
||||||
|
<!--
|
||||||
|
Hi, thanks for submitting a Pull Request. We appreciate it.
|
||||||
|
|
||||||
|
Please, fill in all the required information
|
||||||
|
to make our review and merging processes easier.
|
||||||
|
|
||||||
|
Cheers!
|
||||||
|
-->
|
||||||
|
|
||||||
|
## Related issues
|
||||||
|
|
||||||
|
<!--
|
||||||
|
Mark what issues this Pull Request closes or references.
|
||||||
|
|
||||||
|
Format is:
|
||||||
|
- Closes #issue-number
|
||||||
|
- Refs #issue-number
|
||||||
|
|
||||||
|
Example. Refs #0
|
||||||
|
Documentation: https://blog.github.com/2013-05-14-closing-issues-via-pull-requests/
|
||||||
|
-->
|
||||||
|
|
||||||
|
<!--
|
||||||
|
If you have any feedback, just write it here.
|
||||||
|
|
||||||
|
It can be whatever you want!
|
||||||
|
-->
|
||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
# pep484 stubs for Django framework
|
# pep484 stubs for Django framework
|
||||||
|
|
||||||
[](https://travis-ci.org/mkurnikov/django-stubs)
|
[](https://travis-ci.org/typeddjango/django-stubs)
|
||||||
[](http://mypy-lang.org/)
|
[](http://mypy-lang.org/)
|
||||||
|
|
||||||
This package contains type stubs and mypy plugin to provide more precise static types and type inference for Django framework. Django uses some Python "magic" that makes having precise types for some code patterns problematic. This is why we need to accompany the stubs with mypy plugins. The final goal is to be able to get precise types for most common patterns.
|
This package contains type stubs and mypy plugin to provide more precise static types and type inference for Django framework. Django uses some Python "magic" that makes having precise types for some code patterns problematic. This is why we need to accompany the stubs with mypy plugins. The final goal is to be able to get precise types for most common patterns.
|
||||||
|
|||||||
@@ -60,6 +60,7 @@ class BaseForm:
|
|||||||
def full_clean(self) -> None: ...
|
def full_clean(self) -> None: ...
|
||||||
def clean(self) -> Dict[str, Any]: ...
|
def clean(self) -> Dict[str, Any]: ...
|
||||||
def has_changed(self) -> bool: ...
|
def has_changed(self) -> bool: ...
|
||||||
|
@property
|
||||||
def changed_data(self) -> List[str]: ...
|
def changed_data(self) -> List[str]: ...
|
||||||
@property
|
@property
|
||||||
def media(self) -> Media: ...
|
def media(self) -> Media: ...
|
||||||
|
|||||||
Reference in New Issue
Block a user