mirror of
https://github.com/davidhalter/django-stubs.git
synced 2026-10-11 23:50:18 +08:00
fix integer set type
This commit is contained in:
1 parent
78810f55b6
commit
5d8cdbcf29
10 files changed
+20
-20
No files matched your search
@@ -246,7 +246,7 @@ def extract_primary_key_type_for_get(model: TypeInfo) -> Optional[Type]:
|
||||
|
||||
|
||||
def make_optional(typ: Type):
|
||||
return UnionType.make_simplified_union([typ, NoneTyp()])
|
||||
return UnionType.make_union([typ, NoneTyp()])
|
||||
|
||||
|
||||
def make_required(typ: Type) -> Type:
|
||||
|
||||
@@ -55,8 +55,8 @@ def convert_any_to_type(typ: Type, referred_to_type: Type) -> Type:
|
||||
converted_items = []
|
||||
for item in typ.items:
|
||||
converted_items.append(convert_any_to_type(item, referred_to_type))
|
||||
return UnionType.make_simplified_union(converted_items,
|
||||
line=typ.line, column=typ.column)
|
||||
return UnionType.make_union(converted_items,
|
||||
line=typ.line, column=typ.column)
|
||||
if isinstance(typ, Instance):
|
||||
args = []
|
||||
for default_arg in typ.args:
|
||||
|
||||
Reference in new issue
Block a user