Skip to content

Commit 10522f5

Browse files
committed
prepare for mypy 1.12
1 parent c12f1ed commit 10522f5

File tree

9 files changed

+2
-106
lines changed

9 files changed

+2
-106
lines changed

mypy-stubs/cachecontrol/__init__.pyi

Lines changed: 0 additions & 9 deletions
This file was deleted.

mypy-stubs/cachecontrol/cache.pyi

Lines changed: 0 additions & 12 deletions
This file was deleted.

mypy-stubs/cachecontrol/caches/__init__.pyi

Lines changed: 0 additions & 5 deletions
This file was deleted.

mypy-stubs/cachecontrol/caches/file_cache.pyi

Lines changed: 0 additions & 35 deletions
This file was deleted.

mypy-stubs/cachecontrol/compat.pyi

Lines changed: 0 additions & 7 deletions
This file was deleted.

mypy-stubs/cachecontrol/controller.pyi

Lines changed: 0 additions & 18 deletions
This file was deleted.

mypy-stubs/cachecontrol/wrapper.pyi

Lines changed: 0 additions & 18 deletions
This file was deleted.

schema_salad/avro/schema.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -700,7 +700,7 @@ def make_avsc_object(json_data: JsonDataType, names: Optional[Names] = None) ->
700700
atype = json_data.get("type")
701701
other_props = get_other_props(json_data, SCHEMA_RESERVED_PROPS)
702702
if atype in PRIMITIVE_TYPES:
703-
primative_type = cast(str, atype)
703+
primative_type = atype
704704
return PrimitiveSchema(primative_type, other_props)
705705
if atype in NAMED_TYPES:
706706
name = json_data.get("name")

schema_salad/dlang_codegen.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ def is_constant_field(field: Dict[str, Any]) -> bool:
434434
def constant_fields_of(type_: Any) -> Set[str]:
435435
"""Return a list of constant fields name from a given record schema."""
436436
if isinstance(type_, dict):
437-
return set(shortname(f["name"]) for f in type_.get("fields", []) if is_constant_field(f))
437+
return {shortname(f["name"]) for f in type_.get("fields", []) if is_constant_field(f)}
438438
return set()
439439

440440

0 commit comments

Comments
 (0)