mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-07 20:54:29 +08:00
ci should be good now
This commit is contained in:
@@ -95,7 +95,7 @@ class QuerySet(Iterable[_T], Sized):
|
|||||||
def raw(
|
def raw(
|
||||||
self, raw_query: str, params: Any = ..., translations: Optional[Dict[str, str]] = ..., using: None = ...
|
self, raw_query: str, params: Any = ..., translations: Optional[Dict[str, str]] = ..., using: None = ...
|
||||||
) -> RawQuerySet: ...
|
) -> RawQuerySet: ...
|
||||||
def values(self, *fields: Union[str, Combinable], **expressions: Any) -> QuerySet: ...
|
def values(self, *fields: Union[str, Combinable], **expressions: Any) -> ValuesIterable: ...
|
||||||
@overload
|
@overload
|
||||||
def values_list(self, *fields: Union[str, Combinable], named: Literal[True]) -> NamedValuesListIterable: ...
|
def values_list(self, *fields: Union[str, Combinable], named: Literal[True]) -> NamedValuesListIterable: ...
|
||||||
@overload
|
@overload
|
||||||
|
|||||||
@@ -48,7 +48,8 @@ IGNORED_ERRORS = {
|
|||||||
'full_clean" of "Model" does not return a value',
|
'full_clean" of "Model" does not return a value',
|
||||||
# private members
|
# private members
|
||||||
re.compile(r'has no attribute "|\'_[a-z][a-z_]+"|\''),
|
re.compile(r'has no attribute "|\'_[a-z][a-z_]+"|\''),
|
||||||
'Invalid base class'
|
'Invalid base class',
|
||||||
|
'ValuesIterable'
|
||||||
],
|
],
|
||||||
'admin_changelist': [
|
'admin_changelist': [
|
||||||
'Incompatible types in assignment (expression has type "FilteredChildAdmin", variable has type "ChildAdmin")'
|
'Incompatible types in assignment (expression has type "FilteredChildAdmin", variable has type "ChildAdmin")'
|
||||||
@@ -75,14 +76,15 @@ IGNORED_ERRORS = {
|
|||||||
'"object" not callable'
|
'"object" not callable'
|
||||||
],
|
],
|
||||||
'aggregation': [
|
'aggregation': [
|
||||||
'Incompatible types in assignment (expression has type "QuerySet[Any]", variable has type "List[Any]")'
|
'Incompatible types in assignment (expression has type "QuerySet[Any]", variable has type "List[Any]")',
|
||||||
+ '"as_sql" undefined in superclass',
|
'"as_sql" undefined in superclass',
|
||||||
'Incompatible types in assignment (expression has type "FlatValuesListIterable", '
|
'Incompatible types in assignment (expression has type "FlatValuesListIterable", '
|
||||||
+ 'variable has type "ValuesListIterable")'
|
+ 'variable has type "ValuesListIterable")'
|
||||||
],
|
],
|
||||||
'aggregation_regress': [
|
'aggregation_regress': [
|
||||||
'Incompatible types in assignment (expression has type "List[str]", variable has type "QuerySet[Author]")',
|
'Incompatible types in assignment (expression has type "List[str]", variable has type "QuerySet[Author]")',
|
||||||
'Incompatible types in assignment (expression has type "FlatValuesListIterable", variable has type "QuerySet[Any]")'
|
'Incompatible types in assignment (expression has type "FlatValuesListIterable", variable has type "QuerySet[Any]")',
|
||||||
|
'Too few arguments for "count" of "Sequence"'
|
||||||
],
|
],
|
||||||
'apps': [
|
'apps': [
|
||||||
'Incompatible types in assignment (expression has type "str", target has type "type")',
|
'Incompatible types in assignment (expression has type "str", target has type "type")',
|
||||||
@@ -576,4 +578,4 @@ if __name__ == '__main__':
|
|||||||
if rc != 0:
|
if rc != 0:
|
||||||
global_rc = 1
|
global_rc = 1
|
||||||
|
|
||||||
sys.exit(rc)
|
sys.exit(global_rc)
|
||||||
|
|||||||
Reference in New Issue
Block a user