Upgrading mypy 0.950 to 0.960
Unknown0.950 → 0.960
Fetching 1 release from GitHub…0 / 1
UnknownUpgrade verdict
DepDelta is still reading the notes for this range, so breaking changes can't be ruled out yet.
In plain terms
- DepDelta is still reading the release notes in this range, so it can't rule out breaking changes yet.
- This page updates as the notes come in.
Must act Still reading release notes
DepDelta is still reading the release notes in this range. This updates as they come in.
API changes
Generated by DepDelta from published Python source. Not mixed with prose notes.
- removed:
class BuildSourceSet - removed:
constructor BuildSourceSet(sources: List[BuildSource]) -> None - removed:
method BuildSourceSet.is_source(file: MypyFile) -> bool - removed:
variable CacheMeta - added:
class CacheMeta(NamedTuple) - added:
field CacheMeta.data_json: str - added:
field CacheMeta.data_mtime: int - added:
field CacheMeta.dep_lines: List[int] - added:
field CacheMeta.dep_prios: List[int] - added:
field CacheMeta.dependencies: List[str] - added:
field CacheMeta.hash: str - added:
field CacheMeta.id: str - added:
field CacheMeta.ignore_all: bool - added:
field CacheMeta.interface_hash: str - added:
field CacheMeta.mtime: int - added:
field CacheMeta.options: Optional[Dict[str, object]] - added:
field CacheMeta.path: str - added:
field CacheMeta.plugin_data: Any - added:
field CacheMeta.size: int - added:
field CacheMeta.suppressed: List[str] - added:
field CacheMeta.version_id: str - added:
field State.time_spent_us: int - added:
function dump_timing_stats(path: str, graph: Graph) -> None
- removed:
field TypeChecker.type_map: Dict[Expression, Type] - removed:
function get_isinstance_type(expr: Expression, type_map: Dict[Expression, Type]) -> Optional[List[TypeRange]] - removed:
function is_literal_enum(type_map: Mapping[Expression, Type], n: Expression) -> bool - removed:
variable DeferredNode - removed:
variable FineGrainedDeferredNode - removed:
variable PartialTypeScope - removed:
variable TypeRange - changed:
method TypeChecker.infer_issubclass_maps(node: CallExpr, expr: Expression, type_map: Dict[Expression, Type]) -> Tuple[TypeMap, TypeMap] → method TypeChecker.infer_issubclass_maps(node: CallExpr, expr: Expression) -> Tuple[TypeMap, TypeMap] - changed:
method TypeChecker.propagate_up_typemap_info(existing_types: Mapping[Expression, Type], new_types: TypeMap) -> TypeMap → method TypeChecker.propagate_up_typemap_info(new_types: TypeMap) -> TypeMap - changed:
method TypeChecker.refine_parent_types(existing_types: Mapping[Expression, Type], expr: Expression, expr_type: Type) -> Mapping[Expression, Type] → method TypeChecker.refine_parent_types(expr: Expression, expr_type: Type) -> Mapping[Expression, Type] - added:
class DeferredNode(NamedTuple) - added:
class FineGrainedDeferredNode(NamedTuple) - added:
class PartialTypeScope(NamedTuple) - added:
class TypeRange(NamedTuple) - added:
field DeferredNode.active_typeinfo: Optional[TypeInfo] - added:
field DeferredNode.node: DeferredNodeType - added:
field FineGrainedDeferredNode.active_typeinfo: Optional[TypeInfo] - added:
field FineGrainedDeferredNode.node: FineGrainedDeferredNodeType - added:
field PartialTypeScope.is_function: bool - added:
field PartialTypeScope.is_local: bool - added:
field PartialTypeScope.map: Dict[Var, Context] - added:
field TypeRange.is_upper_bound: bool - added:
field TypeRange.item: Type - added:
method TypeChecker.get_isinstance_type(expr: Expression) -> Optional[List[TypeRange]] - added:
method TypeChecker.has_type(node: Expression) -> bool - added:
method TypeChecker.is_literal_enum(n: Expression) -> bool - added:
method TypeChecker.local_type_map() -> Iterator[Dict[Expression, Type]] - added:
method TypeChecker.lookup_type(node: Expression) -> Type - added:
method TypeChecker.lookup_type_or_none(node: Expression) -> Optional[Type] - added:
method TypeChecker.store_types(d: Dict[Expression, Type]) -> None
- changed:
method ExpressionChecker.check_arg(caller_type: Type, original_caller_type: Type, caller_kind: ArgKind, callee_type: Type, n: int, m: int, callee: CallableType, object_type: Optional[Type], context: Context, outer_context: Context, messages: MessageBuilder) -> None → method ExpressionChecker.check_arg(caller_type: Type, original_caller_type: Type, caller_kind: ArgKind, callee_type: Type, n: int, m: int, callee: CallableType, object_type: Optional[Type], context: Context, outer_context: Context) -> None - changed:
method ExpressionChecker.check_argument_count(callee: CallableType, actual_types: List[Type], actual_kinds: List[ArgKind], actual_names: Optional[Sequence[Optional[str]]], formal_to_actual: List[List[int]], context: Optional[Context], messages: Optional[MessageBuilder]) -> bool → method ExpressionChecker.check_argument_count(callee: CallableType, actual_types: List[Type], actual_kinds: List[ArgKind], actual_names: Optional[Sequence[Optional[str]]], formal_to_actual: List[List[int]], context: Optional[Context]) -> bool - changed:
method ExpressionChecker.check_argument_types(arg_types: List[Type], arg_kinds: List[ArgKind], args: List[Expression], callee: CallableType, formal_to_actual: List[List[int]], context: Context, messages: Optional[MessageBuilder]=…, check_arg: Optional[ArgChecker]=…, object_type: Optional[Type]=…) -> None → method ExpressionChecker.check_argument_types(arg_types: List[Type], arg_kinds: List[ArgKind], args: List[Expression], callee: CallableType, formal_to_actual: List[List[int]], context: Context, check_arg: Optional[ArgChecker]=…, object_type: Optional[Type]=…) -> None - changed:
method ExpressionChecker.check_call(callee: Type, args: List[Expression], arg_kinds: List[ArgKind], context: Context, arg_names: Optional[Sequence[Optional[str]]]=…, callable_node: Optional[Expression]=…, arg_messages: Optional[MessageBuilder]=…, callable_name: Optional[str]=…, object_type: Optional[Type]=…) -> Tuple[Type, Type] → method ExpressionChecker.check_call(callee: Type, args: List[Expression], arg_kinds: List[ArgKind], context: Context, arg_names: Optional[Sequence[Optional[str]]]=…, callable_node: Optional[Expression]=…, callable_name: Optional[str]=…, object_type: Optional[Type]=…) -> Tuple[Type, Type] - changed:
method ExpressionChecker.check_callable_call(callee: CallableType, args: List[Expression], arg_kinds: List[ArgKind], context: Context, arg_names: Optional[Sequence[Optional[str]]], callable_node: Optional[Expression], arg_messages: MessageBuilder, callable_name: Optional[str], object_type: Optional[Type]) -> Tuple[Type, Type] → method ExpressionChecker.check_callable_call(callee: CallableType, args: List[Expression], arg_kinds: List[ArgKind], context: Context, arg_names: Optional[Sequence[Optional[str]]], callable_node: Optional[Expression], callable_name: Optional[str], object_type: Optional[Type]) -> Tuple[Type, Type] - changed:
method ExpressionChecker.check_for_extra_actual_arguments(callee: CallableType, actual_types: List[Type], actual_kinds: List[ArgKind], actual_names: Optional[Sequence[Optional[str]]], all_actuals: List[int], context: Context, messages: Optional[MessageBuilder]) -> Tuple[bool, bool] → method ExpressionChecker.check_for_extra_actual_arguments(callee: CallableType, actual_types: List[Type], actual_kinds: List[ArgKind], actual_names: Optional[Sequence[Optional[str]]], all_actuals: Dict[int, int], context: Context) -> Tuple[bool, bool] - changed:
method ExpressionChecker.check_lst_expr(items: List[Expression], fullname: str, tag: str, context: Context) -> Type → method ExpressionChecker.check_lst_expr(e: Union[ListExpr, SetExpr, TupleExpr], fullname: str, tag: str) -> Type - changed:
method ExpressionChecker.check_method_call(method_name: str, base_type: Type, method_type: Type, args: List[Expression], arg_kinds: List[ArgKind], context: Context, local_errors: Optional[MessageBuilder]=…) -> Tuple[Type, Type] → method ExpressionChecker.check_method_call(method_name: str, base_type: Type, method_type: Type, args: List[Expression], arg_kinds: List[ArgKind], context: Context) -> Tuple[Type, Type] - changed:
method ExpressionChecker.check_method_call_by_name(method: str, base_type: Type, args: List[Expression], arg_kinds: List[ArgKind], context: Context, local_errors: Optional[MessageBuilder]=…, original_type: Optional[Type]=…) -> Tuple[Type, Type] → method ExpressionChecker.check_method_call_by_name(method: str, base_type: Type, args: List[Expression], arg_kinds: List[ArgKind], context: Context, original_type: Optional[Type]=…) -> Tuple[Type, Type] - changed:
method ExpressionChecker.check_op_reversible(op_name: str, left_type: Type, left_expr: Expression, right_type: Type, right_expr: Expression, context: Context, msg: MessageBuilder) -> Tuple[Type, Type] → method ExpressionChecker.check_op_reversible(op_name: str, left_type: Type, left_expr: Expression, right_type: Type, right_expr: Expression, context: Context) -> Tuple[Type, Type] - changed:
method ExpressionChecker.check_overload_call(callee: Overloaded, args: List[Expression], arg_kinds: List[ArgKind], arg_names: Optional[Sequence[Optional[str]]], callable_name: Optional[str], object_type: Optional[Type], context: Context, arg_messages: MessageBuilder) -> Tuple[Type, Type] → method ExpressionChecker.check_overload_call(callee: Overloaded, args: List[Expression], arg_kinds: List[ArgKind], arg_names: Optional[Sequence[Optional[str]]], callable_name: Optional[str], object_type: Optional[Type], context: Context) -> Tuple[Type, Type] - changed:
method ExpressionChecker.check_union_call(callee: UnionType, args: List[Expression], arg_kinds: List[ArgKind], arg_names: Optional[Sequence[Optional[str]]], context: Context, arg_messages: MessageBuilder) -> Tuple[Type, Type] → method ExpressionChecker.check_union_call(callee: UnionType, args: List[Expression], arg_kinds: List[ArgKind], arg_names: Optional[Sequence[Optional[str]]], context: Context) -> Tuple[Type, Type] - changed:
method ExpressionChecker.check_union_method_call_by_name(method: str, base_type: UnionType, args: List[Expression], arg_kinds: List[ArgKind], context: Context, local_errors: MessageBuilder, original_type: Optional[Type]=…) -> Tuple[Type, Type] → method ExpressionChecker.check_union_method_call_by_name(method: str, base_type: UnionType, args: List[Expression], arg_kinds: List[ArgKind], context: Context, original_type: Optional[Type]=…) -> Tuple[Type, Type] - changed:
method ExpressionChecker.fast_container_type(items: List[Expression], container_fullname: str) -> Optional[Type] → method ExpressionChecker.fast_container_type(e: Union[ListExpr, SetExpr, TupleExpr], container_fullname: str) -> Optional[Type] - changed:
method ExpressionChecker.infer_overload_return_type(plausible_targets: List[CallableType], args: List[Expression], arg_types: List[Type], arg_kinds: List[ArgKind], arg_names: Optional[Sequence[Optional[str]]], callable_name: Optional[str], object_type: Optional[Type], context: Context, arg_messages: Optional[MessageBuilder]=…) -> Optional[Tuple[Type, Type]] → method ExpressionChecker.infer_overload_return_type(plausible_targets: List[CallableType], args: List[Expression], arg_types: List[Type], arg_kinds: List[ArgKind], arg_names: Optional[Sequence[Optional[str]]], callable_name: Optional[str], object_type: Optional[Type], context: Context) -> Optional[Tuple[Type, Type]] - changed:
method ExpressionChecker.union_overload_result(plausible_targets: List[CallableType], args: List[Expression], arg_types: List[Type], arg_kinds: List[ArgKind], arg_names: Optional[Sequence[Optional[str]]], callable_name: Optional[str], object_type: Optional[Type], context: Context, arg_messages: Optional[MessageBuilder]=…, level: int=…) -> Optional[List[Tuple[Type, Type]]] → method ExpressionChecker.union_overload_result(plausible_targets: List[CallableType], args: List[Expression], arg_types: List[Type], arg_kinds: List[ArgKind], arg_names: Optional[Sequence[Optional[str]]], callable_name: Optional[str], object_type: Optional[Type], context: Context, level: int=…) -> Optional[List[Tuple[Type, Type]]] - changed:
method ExpressionChecker.visit_typeddict_index_expr(td_type: TypedDictType, index: Expression, local_errors: Optional[MessageBuilder]=…) -> Type → method ExpressionChecker.visit_typeddict_index_expr(td_type: TypedDictType, index: Expression) -> Type - added:
field ExpressionChecker.resolved_type: Dict[Expression, ProperType] - added:
function allow_fast_container_literal(t: ProperType) -> bool - added:
method ExpressionChecker.reset() -> None - added:
method ExpressionChecker.visit_type_var_tuple_expr(e: TypeVarTupleExpr) -> Type
- added:
function apply_class_attr_hook(mx: MemberContext, hook: Optional[Callable[[AttributeContext], Type]], result: Type) -> Optional[Type]
- removed:
variable PatternType - changed:
method PatternChecker.get_simple_mapping_item_type(pattern: MappingPattern, mapping_type: Type, key: Expression, local_errors: MessageBuilder) -> Type → method PatternChecker.get_simple_mapping_item_type(pattern: MappingPattern, mapping_type: Type, key: Expression) -> Type - added:
class PatternType(NamedTuple) - added:
field PatternType.captures: Dict[Expression, Type] - added:
field PatternType.rest_type: Type - added:
field PatternType.type: Type
- changed:
function parse_version(v: str) -> Tuple[int, int] → function parse_version(v: Union[str, float]) -> Tuple[int, int]
- added:
method ConstraintBuilderVisitor.visit_type_var_tuple(template: TypeVarTupleType) -> List[Constraint]
- changed:
function fail(msg: str) -> None → function fail(msg: str) -> NoReturn
- added:
method EraseTypeVisitor.visit_type_var_tuple(t: TypeVarTupleType) -> ProperType
- removed:
method Errors.copy() -> Errors - removed:
method Errors.is_real_errors() -> bool - removed:
method Errors.most_recent_error_location() -> Tuple[int, int] - removed:
method Errors.total_errors() -> int - changed:
function report_internal_error(err: Exception, file: Optional[str], line: int, errors: Errors, options: Options, stdout: Optional[TextIO]=…, stderr: Optional[TextIO]=…) -> None → function report_internal_error(err: Exception, file: Optional[str], line: int, errors: Errors, options: Options, stdout: Optional[TextIO]=…, stderr: Optional[TextIO]=…) -> NoReturn - changed:
method Errors.raise_error(use_stdout: bool=…) -> None → method Errors.raise_error(use_stdout: bool=…) -> NoReturn - added:
class ErrorWatcher - added:
constructor ErrorWatcher(errors: Errors, *, filter_errors: Union[bool, Callable[[str, ErrorInfo], bool]]=…, save_filtered_errors: bool=…) - added:
field Errors.has_blockers: Set[str] - added:
method ErrorWatcher.filtered_errors() -> List[ErrorInfo] - added:
method ErrorWatcher.has_new_errors() -> bool - added:
method ErrorWatcher.on_error(file: str, info: ErrorInfo) -> bool
- added:
method ExpandTypeVisitor.expand_unpack(t: UnpackType) -> Optional[Union[List[Type], Instance, AnyType]] - added:
method ExpandTypeVisitor.visit_type_var_tuple(t: TypeVarTupleType) -> Type
- added:
method TypeFixer.visit_type_var_tuple(t: TypeVarTupleType) -> None
- added:
method TypeIndirectionVisitor.visit_type_var_tuple(t: types.TypeVarTupleType) -> Set[str]
- added:
method TypeJoinVisitor.visit_type_var_tuple(t: TypeVarTupleType) -> ProperType
- changed:
function fail(msg: str, stderr: TextIO, options: Options) -> None → function fail(msg: str, stderr: TextIO, options: Options) -> NoReturn
- added:
method TypeMeetVisitor.visit_type_var_tuple(t: TypeVarTupleType) -> ProperType
- removed:
field MessageBuilder.disable_count - removed:
field MessageBuilder.disable_type_names_count - removed:
method MessageBuilder.clean_copy() -> MessageBuilder - removed:
method MessageBuilder.copy() -> MessageBuilder - removed:
method MessageBuilder.disable_errors() -> Iterator[None] - removed:
method MessageBuilder.is_errors() -> bool - removed:
method MessageBuilder.most_recent_context() -> Context - changed:
method MessageBuilder.add_errors(messages: MessageBuilder) -> None → method MessageBuilder.add_errors(errors: List[ErrorInfo]) -> None - added:
method MessageBuilder.are_type_names_disabled() -> bool - added:
method MessageBuilder.filter_errors(*, filter_errors: bool=…, save_filtered_errors: bool=…) -> ErrorWatcher
- changed:
constructor FindModuleCache(search_paths: SearchPaths, fscache: Optional[FileSystemCache], options: Optional[Options], stdlib_py_versions: Optional[StdlibVersions]=…) -> None → constructor FindModuleCache(search_paths: SearchPaths, fscache: Optional[FileSystemCache], options: Optional[Options], stdlib_py_versions: Optional[StdlibVersions]=…, source_set: Optional[BuildSourceSet]=…) -> None - added:
class BuildSourceSet - added:
constructor BuildSourceSet(sources: List[BuildSource]) -> None - added:
method BuildSourceSet.is_source(file: MypyFile) -> bool - added:
method FindModuleCache.find_module_via_source_set(id: str) -> Optional[ModuleSearchResult]
- added:
class TypeVarTupleExpr(TypeVarLikeExpr) - added:
method TypeVarTupleExpr.accept(visitor: ExpressionVisitor[T]) -> T - added:
method TypeVarTupleExpr.serialize() -> JsonDict - added:
static method TypeVarTupleExpr.deserialize(data: JsonDict) -> TypeVarTupleExpr
- removed:
variable AnalyzeTypeContext - removed:
variable AttributeContext - removed:
variable ClassDefContext - removed:
variable DynamicClassDefContext - removed:
variable FunctionContext - removed:
variable FunctionSigContext - removed:
variable MethodContext - removed:
variable MethodSigContext - removed:
variable ReportConfigContext - added:
class AnalyzeTypeContext(NamedTuple) - added:
class AttributeContext(NamedTuple) - added:
class ClassDefContext(NamedTuple) - added:
class DynamicClassDefContext(NamedTuple) - added:
class FunctionContext(NamedTuple) - added:
class FunctionSigContext(NamedTuple) - added:
class MethodContext(NamedTuple) - added:
class MethodSigContext(NamedTuple) - added:
class ReportConfigContext(NamedTuple) - added:
field AnalyzeTypeContext.api: TypeAnalyzerPluginInterface - added:
field AnalyzeTypeContext.context: Context - added:
field AnalyzeTypeContext.type: UnboundType - added:
field AttributeContext.api: CheckerPluginInterface - added:
field AttributeContext.context: Context - added:
field AttributeContext.default_attr_type: Type - added:
field AttributeContext.type: ProperType - added:
field ClassDefContext.api: SemanticAnalyzerPluginInterface - added:
field ClassDefContext.cls: ClassDef - added:
field ClassDefContext.reason: Expression - added:
field DynamicClassDefContext.api: SemanticAnalyzerPluginInterface - added:
field DynamicClassDefContext.call: CallExpr - added:
field DynamicClassDefContext.name: str - added:
field FunctionContext.api: CheckerPluginInterface - added:
field FunctionContext.arg_kinds: List[List[ArgKind]] - added:
field FunctionContext.arg_names: List[List[Optional[str]]] - added:
field FunctionContext.arg_types: List[List[Type]] - added:
field FunctionContext.args: List[List[Expression]] - added:
field FunctionContext.callee_arg_names: List[Optional[str]] - added:
field FunctionContext.context: Context - added:
field FunctionContext.default_return_type: Type - added:
field FunctionSigContext.api: CheckerPluginInterface - added:
field FunctionSigContext.args: List[List[Expression]] - added:
field FunctionSigContext.context: Context - added:
field FunctionSigContext.default_signature: CallableType - added:
field MethodContext.api: CheckerPluginInterface - added:
field MethodContext.arg_kinds: List[List[ArgKind]] - added:
field MethodContext.arg_names: List[List[Optional[str]]] - added:
field MethodContext.arg_types: List[List[Type]] - added:
field MethodContext.args: List[List[Expression]] - added:
field MethodContext.callee_arg_names: List[Optional[str]] - added:
field MethodContext.context: Context - added:
field MethodContext.default_return_type: Type - added:
field MethodContext.type: ProperType - added:
field MethodSigContext.api: CheckerPluginInterface - added:
field MethodSigContext.args: List[List[Expression]] - added:
field MethodSigContext.context: Context - added:
field MethodSigContext.default_signature: CallableType - added:
field MethodSigContext.type: ProperType - added:
field ReportConfigContext.id: str - added:
field ReportConfigContext.is_check: bool - added:
field ReportConfigContext.path: str - added:
method ChainedPlugin.get_class_attribute_hook(fullname: str) -> Optional[Callable[[AttributeContext], Type]] - added:
method ChainedPlugin.get_class_decorator_hook_2(fullname: str) -> Optional[Callable[[ClassDefContext], bool]] - added:
method Plugin.get_class_attribute_hook(fullname: str) -> Optional[Callable[[AttributeContext], Type]] - added:
method Plugin.get_class_decorator_hook_2(fullname: str) -> Optional[Callable[[ClassDefContext], bool]]
- changed:
constructor Converter(name: Optional[str]=…, is_attr_converters_optional: bool=…) -> None → constructor Converter(type: Optional[Type]=…, is_attr_converters_optional: bool=…, is_invalid_converter: bool=…) -> None - changed:
function attr_class_maker_callback(ctx: mypy.plugin.ClassDefContext, auto_attribs_default: Optional[bool]=…, frozen_default: bool=…) -> None → function attr_class_maker_callback(ctx: mypy.plugin.ClassDefContext, auto_attribs_default: Optional[bool]=…, frozen_default: bool=…) -> bool - added:
function attr_tag_callback(ctx: mypy.plugin.ClassDefContext) -> None
- changed:
function dataclass_class_maker_callback(ctx: ClassDefContext) -> None → function dataclass_class_maker_callback(ctx: ClassDefContext) -> bool - changed:
method DataclassTransformer.transform() -> None → method DataclassTransformer.transform() -> bool - added:
function dataclass_tag_callback(ctx: ClassDefContext) -> None
- added:
method DefaultPlugin.get_class_decorator_hook_2(fullname: str) -> Optional[Callable[[ClassDefContext], bool]]
- changed:
function functools_total_ordering_maker_callback(ctx: mypy.plugin.ClassDefContext, auto_attribs_default: bool=…) -> None → function functools_total_ordering_maker_callback(ctx: mypy.plugin.ClassDefContext, auto_attribs_default: bool=…) -> bool
- removed:
variable RegisterCallableInfo - removed:
variable SingledispatchTypeVars - added:
class RegisterCallableInfo(NamedTuple) - added:
class SingledispatchTypeVars(NamedTuple) - added:
field RegisterCallableInfo.register_type: Type - added:
field RegisterCallableInfo.singledispatch_obj: Instance - added:
field SingledispatchTypeVars.fallback: CallableType - added:
field SingledispatchTypeVars.return_type: Type
- changed:
class CoberturaPackage(object) → class CoberturaPackage
- added:
method SameTypeVisitor.visit_type_var_tuple(left: TypeVarTupleType) -> bool
- added:
method SemanticAnalyzer.get_fullname_for_hook(expr: Expression) -> Optional[str] - added:
method SemanticAnalyzer.process_typevartuple_declaration(s: AssignmentStmt) -> bool
- added:
function apply_class_plugin_hooks(graph: Graph, scc: List[str], errors: Errors) -> None - added:
function apply_hooks_to_class(self: SemanticAnalyzer, module: str, info: TypeInfo, options: Options, file_node: MypyFile, errors: Errors) -> bool
- changed:
method NamedTupleAnalyzer.analyze_namedtuple_classdef(defn: ClassDef, is_stub_file: bool) -> Tuple[bool, Optional[TypeInfo]] → method NamedTupleAnalyzer.analyze_namedtuple_classdef(defn: ClassDef, is_stub_file: bool, is_func_scope: bool) -> Tuple[bool, Optional[TypeInfo]]
- added:
function paramspec_args(name: str, fullname: str, id: Union[TypeVarId, int], *, named_type_func: _NamedTypeCallback, line: int=…, column: int=…, prefix: Optional[Parameters]=…) -> ParamSpecType - added:
function paramspec_kwargs(name: str, fullname: str, id: Union[TypeVarId, int], *, named_type_func: _NamedTypeCallback, line: int=…, column: int=…, prefix: Optional[Parameters]=…) -> ParamSpecType
- added:
method SnapshotTypeVisitor.visit_type_var_tuple(typ: TypeVarTupleType) -> SnapshotItem
- added:
method TypeReplaceVisitor.visit_type_var_tuple(typ: TypeVarTupleType) -> None
- added:
method TypeTriggersVisitor.visit_type_var_tuple(typ: TypeVarTupleType) -> List[str]
- removed:
variable BlockedUpdate - removed:
variable NormalUpdate - added:
class BlockedUpdate(NamedTuple) - added:
class NormalUpdate(NamedTuple) - added:
field BlockedUpdate.messages: List[str] - added:
field BlockedUpdate.module: str - added:
field BlockedUpdate.path: str - added:
field BlockedUpdate.remaining: List[Tuple[str, str]] - added:
field NormalUpdate.module: str - added:
field NormalUpdate.path: str - added:
field NormalUpdate.remaining: List[Tuple[str, str]] - added:
field NormalUpdate.tree: Optional[MypyFile]
- added:
method StrConv.visit_type_var_tuple_expr(o: mypy.nodes.TypeVarTupleExpr) -> str
- removed:
variable FunctionSig - added:
class FunctionSig(NamedTuple) - added:
field FunctionSig.args: List[ArgSig] - added:
field FunctionSig.name: str - added:
field FunctionSig.ret_type: str
- changed:
method StubGenerator.refers_to_fullname(name: str, fullname: str) -> bool → method StubGenerator.refers_to_fullname(name: str, fullname: Union[str, Tuple[str, ...]]) -> bool - added:
variable TYPING_MODULE_NAMES: Final
- added:
method ProperSubtypeVisitor.visit_type_var_tuple(left: TypeVarTupleType) -> bool - added:
method SubtypeVisitor.visit_type_var_tuple(left: TypeVarTupleType) -> bool
- removed:
variable Callsite - removed:
variable PyAnnotateSignature - added:
class Callsite(NamedTuple) - added:
class PyAnnotateSignature(TypedDict) - added:
field Callsite.arg_kinds: List[List[ArgKind]] - added:
field Callsite.arg_names: List[List[Optional[str]]] - added:
field Callsite.arg_types: List[List[Type]] - added:
field Callsite.callee_arg_names: List[Optional[str]] - added:
field Callsite.line: int - added:
field Callsite.path: str - added:
field PyAnnotateSignature.arg_types: List[str] - added:
field PyAnnotateSignature.return_type: str
- added:
method TransformVisitor.visit_type_var_tuple_expr(node: TypeVarTupleExpr) -> TypeVarTupleExpr
- added:
method TypeQuery.visit_type_var_tuple(t: TypeVarTupleType) -> T - added:
method TypeTranslator.visit_type_var_tuple(t: TypeVarTupleType) -> Type - added:
method TypeVisitor.visit_type_var_tuple(t: TypeVarTupleType) -> T
- removed:
variable MsgCallback - added:
class MsgCallback(Protocol) - added:
method TypeAnalyser.visit_type_var_tuple(t: TypeVarTupleType) -> Type
- changed:
function simple_literal_type(t: ProperType) -> Optional[Instance] → function simple_literal_type(t: Optional[ProperType]) -> Optional[Instance]
- removed:
variable FormalArgument - added:
class FormalArgument(NamedTuple) - added:
class TypeVarTupleType(TypeVarLikeType) - added:
field FormalArgument.name: Optional[str] - added:
field FormalArgument.pos: Optional[int] - added:
field FormalArgument.required: bool - added:
field FormalArgument.typ: Type - added:
method TypeStrVisitor.visit_type_var_tuple(t: TypeVarTupleType) -> str - added:
method TypeVarTupleType.accept(visitor: TypeVisitor[T]) -> T - added:
method TypeVarTupleType.serialize() -> JsonDict - added:
static method TypeVarTupleType.deserialize(data: JsonDict) -> TypeVarTupleType - added:
static method TypeVarTupleType.new_unification_variable(old: TypeVarTupleType) -> TypeVarTupleType - added:
variable OVERLOAD_NAMES: Final
- changed:
function iter_fields(node: AST) -> Iterator[_typing.Tuple[str, Any]] → function iter_fields(node: AST) -> Iterator[tuple[str, Any]] - changed:
function parse(source: str | bytes, filename: str | bytes=…, mode: Literal['exec']=…, *, type_comments: bool=…, feature_version: None | int | _typing.Tuple[int, int]=…) -> Module | (source: str | bytes, filename: str | bytes, mode: Literal['eval'], *, type_comments: bool=…, feature_version: None | int | _typing.Tuple[int, int]=…) -> Expression | (source: str | bytes, filename: str | bytes, mode:… → function parse(source: str | bytes, filename: str | bytes=…, mode: Literal['exec']=…, *, type_comments: bool=…, feature_version: None | int | tuple[int, int]=…) -> Module | (source: str | bytes, filename: str | bytes, mode: Literal['eval'], *, type_comments: bool=…, feature_version: None | int | tuple[int, int]=…) -> Expression | (source: str | bytes, filename: str | bytes, mode: Literal['func_ty…
- removed:
variable AdpcmState - removed:
variable RatecvState - changed:
function adpcm2lin(__fragment: bytes, __width: int, __state: AdpcmState | None) -> tuple[bytes, AdpcmState] → function adpcm2lin(__fragment: bytes, __width: int, __state: _AdpcmState | None) -> tuple[bytes, _AdpcmState] - changed:
function lin2adpcm(__fragment: bytes, __width: int, __state: AdpcmState | None) -> tuple[bytes, AdpcmState] → function lin2adpcm(__fragment: bytes, __width: int, __state: _AdpcmState | None) -> tuple[bytes, _AdpcmState] - changed:
function ratecv(__fragment: bytes, __width: int, __nchannels: int, __inrate: int, __outrate: int, __state: RatecvState | None, __weightA: int=…, __weightB: int=…) -> tuple[bytes, RatecvState] → function ratecv(__fragment: bytes, __width: int, __nchannels: int, __inrate: int, __outrate: int, __state: _RatecvState | None, __weightA: int=…, __weightB: int=…) -> tuple[bytes, _RatecvState]
- changed:
method Bdb.dispatch_exception(frame: FrameType, arg: _ExcInfo) -> _TraceDispatch → method Bdb.dispatch_exception(frame: FrameType, arg: ExcInfo) -> _TraceDispatch - changed:
method Bdb.user_exception(frame: FrameType, exc_info: _ExcInfo) -> None → method Bdb.user_exception(frame: FrameType, exc_info: ExcInfo) -> None
- changed:
function a2b_base64(__data: str | bytes) -> bytes → function a2b_base64(__data: _AsciiBuffer) -> bytes - changed:
function a2b_hex(__hexstr: str | bytes) -> bytes → function a2b_hex(__hexstr: _AsciiBuffer) -> bytes - changed:
function a2b_hqx(__data: str | bytes) -> bytes → function a2b_hqx(__data: _AsciiBuffer) -> bytes - changed:
function a2b_qp(data: str | bytes, header: bool=…) -> bytes → function a2b_qp(data: _AsciiBuffer, header: bool=…) -> bytes - changed:
function a2b_uu(__data: str | bytes) -> bytes → function a2b_uu(__data: _AsciiBuffer) -> bytes - changed:
function b2a_base64(__data: bytes, *, newline: bool=…) -> bytes → function b2a_base64(__data: ReadableBuffer, *, newline: bool=…) -> bytes - changed:
function b2a_hex(__data: bytes) -> bytes → function b2a_hex(__data: ReadableBuffer) -> bytes - changed:
function b2a_hqx(__data: bytes) -> bytes → function b2a_hqx(__data: ReadableBuffer) -> bytes - changed:
function b2a_qp(data: bytes, quotetabs: bool=…, istext: bool=…, header: bool=…) -> bytes → function b2a_qp(data: ReadableBuffer, quotetabs: bool=…, istext: bool=…, header: bool=…) -> bytes - changed:
function b2a_uu(__data: bytes) -> bytes → function b2a_uu(__data: ReadableBuffer) -> bytes - changed:
function crc32(__data: bytes, __crc: int=…) -> int → function crc32(__data: ReadableBuffer, __crc: int=…) -> int - changed:
function crc_hqx(__data: bytes, __crc: int) -> int → function crc_hqx(__data: ReadableBuffer, __crc: int) -> int - changed:
function hexlify(__data: bytes) -> bytes → function hexlify(__data: ReadableBuffer) -> bytes - changed:
function rlecode_hqx(__data: bytes) -> bytes → function rlecode_hqx(__data: ReadableBuffer) -> bytes - changed:
function rledecode_hqx(__data: bytes) -> bytes → function rledecode_hqx(__data: ReadableBuffer) -> bytes - changed:
function unhexlify(__hexstr: str | bytes) -> bytes → function unhexlify(__hexstr: _AsciiBuffer) -> bytes
- changed:
constructor UnicodeDecodeError(__encoding: str, __object: bytes, __start: int, __end: int, __reason: str) -> None → constructor UnicodeDecodeError(__encoding: str, __object: ReadableBuffer, __start: int, __end: int, __reason: str) -> None - changed:
function aiter(__async_iterable: _SupportsAiter[_SupportsAnextT]) -> _SupportsAnextT → function aiter(__async_iterable: SupportsAiter[_SupportsAnextT]) -> _SupportsAnextT - changed:
function compile(source: str | bytes | AST, filename: str | bytes | _PathLike[Any], mode: str, flags: int=…, dont_inherit: int=…, optimize: int=…) -> Any → function compile(source: str | ReadableBuffer | AST, filename: str | ReadableBuffer | _PathLike[Any], mode: str, flags: int=…, dont_inherit: int=…, optimize: int=…) -> Any - changed:
function eval(__source: str | bytes | CodeType, __globals: dict[str, Any] | None=…, __locals: Mapping[str, object] | None=…) -> Any → function eval(__source: str | ReadableBuffer | CodeType, __globals: dict[str, Any] | None=…, __locals: Mapping[str, object] | None=…) -> Any - changed:
function exec(__source: str | bytes | CodeType, __globals: dict[str, Any] | None=…, __locals: Mapping[str, object] | None=…) -> None → function exec(__source: str | ReadableBuffer | CodeType, __globals: dict[str, Any] | None=…, __locals: Mapping[str, object] | None=…) -> None - changed:
function iter(__iterable: _SupportsIter[_SupportsNextT]) -> _SupportsNextT | (__function: Callable[[], _T | None], __sentinel: None) -> Iterator[_T] | (__function: Callable[[], _T], __sentinel: object) -> Iterator[_T] → function iter(__iterable: SupportsIter[_SupportsNextT]) -> _SupportsNextT | (__iterable: _GetItemIterable[_T]) -> Iterator[_T] | (__function: Callable[[], _T | None], __sentinel: None) -> Iterator[_T] | (__function: Callable[[], _T], __sentinel: object) -> Iterator[_T] - changed:
function ord(__c: str | bytes) -> int → function ord(__c: str | bytes | bytearray) -> int - changed:
function pow(base: int, exp: int, mod: Literal[0]) -> NoReturn | (base: int, exp: int, mod: int) -> int | (base: int, exp: Literal[0], mod: None=…) -> Literal[1] | (base: int, exp: _PositiveInteger, mod: None=…) -> int | (base: int, exp: _NegativeInteger, mod: None=…) -> float | (base: int, exp: int, mod: None=…) -> Any | (base: float, exp: int, mod: None=…) -> float | (base: float, exp: complex… → function pow(base: int, exp: int, mod: Literal[0]) -> NoReturn | (base: int, exp: int, mod: int) -> int | (base: int, exp: Literal[0], mod: None=…) -> Literal[1] | (base: int, exp: _PositiveInteger, mod: None=…) -> int | (base: int, exp: _NegativeInteger, mod: None=…) -> float | (base: int, exp: int, mod: None=…) -> Any | (base: _PositiveInteger, exp: float, mod: None=…) -> float | (base: _Negati… - changed:
method bytearray.count(__sub: bytes | SupportsIndex, __start: SupportsIndex | None=…, __end: SupportsIndex | None=…) -> int → method bytearray.count(__sub: ReadableBuffer | SupportsIndex, __start: SupportsIndex | None=…, __end: SupportsIndex | None=…) -> int - changed:
method bytearray.endswith(__suffix: bytes | tuple[bytes, ...], __start: SupportsIndex | None=…, __end: SupportsIndex | None=…) -> bool → method bytearray.endswith(__suffix: ReadableBuffer | tuple[ReadableBuffer, ...], __start: SupportsIndex | None=…, __end: SupportsIndex | None=…) -> bool - changed:
method bytearray.find(__sub: bytes | SupportsIndex, __start: SupportsIndex | None=…, __end: SupportsIndex | None=…) -> int → method bytearray.find(__sub: ReadableBuffer | SupportsIndex, __start: SupportsIndex | None=…, __end: SupportsIndex | None=…) -> int - changed:
method bytearray.index(__sub: bytes | SupportsIndex, __start: SupportsIndex | None=…, __end: SupportsIndex | None=…) -> int → method bytearray.index(__sub: ReadableBuffer | SupportsIndex, __start: SupportsIndex | None=…, __end: SupportsIndex | None=…) -> int - changed:
method bytearray.join(__iterable_of_bytes: Iterable[ByteString | memoryview]) -> bytearray → method bytearray.join(__iterable_of_bytes: Iterable[ReadableBuffer]) -> bytearray - changed:
method bytearray.ljust(__width: SupportsIndex, __fillchar: bytes=…) -> bytearray → method bytearray.ljust(__width: SupportsIndex, __fillchar: bytes | bytearray=…) -> bytearray - changed:
method bytearray.lstrip(__bytes: bytes | None=…) -> bytearray → method bytearray.lstrip(__bytes: ReadableBuffer | None=…) -> bytearray - changed:
method bytearray.partition(__sep: bytes) -> tuple[bytearray, bytearray, bytearray] → method bytearray.partition(__sep: ReadableBuffer) -> tuple[bytearray, bytearray, bytearray] - changed:
method bytearray.removeprefix(__prefix: bytes) -> bytearray → method bytearray.removeprefix(__prefix: ReadableBuffer) -> bytearray - changed:
method bytearray.removesuffix(__suffix: bytes) -> bytearray → method bytearray.removesuffix(__suffix: ReadableBuffer) -> bytearray - changed:
method bytearray.replace(__old: bytes, __new: bytes, __count: SupportsIndex=…) -> bytearray → method bytearray.replace(__old: ReadableBuffer, __new: ReadableBuffer, __count: SupportsIndex=…) -> bytearray - changed:
method bytearray.rfind(__sub: bytes | SupportsIndex, __start: SupportsIndex | None=…, __end: SupportsIndex | None=…) -> int → method bytearray.rfind(__sub: ReadableBuffer | SupportsIndex, __start: SupportsIndex | None=…, __end: SupportsIndex | None=…) -> int - changed:
method bytearray.rindex(__sub: bytes | SupportsIndex, __start: SupportsIndex | None=…, __end: SupportsIndex | None=…) -> int → method bytearray.rindex(__sub: ReadableBuffer | SupportsIndex, __start: SupportsIndex | None=…, __end: SupportsIndex | None=…) -> int - changed:
method bytearray.rjust(__width: SupportsIndex, __fillchar: bytes=…) -> bytearray → method bytearray.rjust(__width: SupportsIndex, __fillchar: bytes | bytearray=…) -> bytearray - changed:
method bytearray.rpartition(__sep: bytes) -> tuple[bytearray, bytearray, bytearray] → method bytearray.rpartition(__sep: ReadableBuffer) -> tuple[bytearray, bytearray, bytearray] - changed:
method bytearray.rsplit(sep: bytes | None=…, maxsplit: SupportsIndex=…) -> list[bytearray] → method bytearray.rsplit(sep: ReadableBuffer | None=…, maxsplit: SupportsIndex=…) -> list[bytearray] - changed:
method bytearray.rstrip(__bytes: bytes | None=…) -> bytearray → method bytearray.rstrip(__bytes: ReadableBuffer | None=…) -> bytearray - changed:
method bytearray.split(sep: bytes | None=…, maxsplit: SupportsIndex=…) -> list[bytearray] → method bytearray.split(sep: ReadableBuffer | None=…, maxsplit: SupportsIndex=…) -> list[bytearray] - changed:
method bytearray.startswith(__prefix: bytes | tuple[bytes, ...], __start: SupportsIndex | None=…, __end: SupportsIndex | None=…) -> bool → method bytearray.startswith(__prefix: ReadableBuffer | tuple[ReadableBuffer, ...], __start: SupportsIndex | None=…, __end: SupportsIndex | None=…) -> bool - changed:
method bytearray.strip(__bytes: bytes | None=…) -> bytearray → method bytearray.strip(__bytes: ReadableBuffer | None=…) -> bytearray - changed:
method bytearray.translate(__table: bytes | None, delete: bytes=…) -> bytearray → method bytearray.translate(__table: ReadableBuffer | None, delete: bytes=…) -> bytearray - changed:
method bytes.count(__sub: bytes | SupportsIndex, __start: SupportsIndex | None=…, __end: SupportsIndex | None=…) -> int → method bytes.count(__sub: ReadableBuffer | SupportsIndex, __start: SupportsIndex | None=…, __end: SupportsIndex | None=…) -> int - changed:
method bytes.endswith(__suffix: bytes | tuple[bytes, ...], __start: SupportsIndex | None=…, __end: SupportsIndex | None=…) -> bool → method bytes.endswith(__suffix: ReadableBuffer | tuple[ReadableBuffer, ...], __start: SupportsIndex | None=…, __end: SupportsIndex | None=…) -> bool - changed:
method bytes.find(__sub: bytes | SupportsIndex, __start: SupportsIndex | None=…, __end: SupportsIndex | None=…) -> int → method bytes.find(__sub: ReadableBuffer | SupportsIndex, __start: SupportsIndex | None=…, __end: SupportsIndex | None=…) -> int - changed:
method bytes.index(__sub: bytes | SupportsIndex, __start: SupportsIndex | None=…, __end: SupportsIndex | None=…) -> int → method bytes.index(__sub: ReadableBuffer | SupportsIndex, __start: SupportsIndex | None=…, __end: SupportsIndex | None=…) -> int - changed:
method bytes.join(__iterable_of_bytes: Iterable[ByteString | memoryview]) -> bytes → method bytes.join(__iterable_of_bytes: Iterable[ReadableBuffer]) -> bytes - changed:
method bytes.ljust(__width: SupportsIndex, __fillchar: bytes=…) -> bytes → method bytes.ljust(__width: SupportsIndex, __fillchar: bytes | bytearray=…) -> bytes - changed:
method bytes.lstrip(__bytes: bytes | None=…) -> bytes → method bytes.lstrip(__bytes: ReadableBuffer | None=…) -> bytes - changed:
method bytes.partition(__sep: bytes) -> tuple[bytes, bytes, bytes] → method bytes.partition(__sep: ReadableBuffer) -> tuple[bytes, bytes, bytes] - changed:
method bytes.removeprefix(__prefix: bytes) -> bytes → method bytes.removeprefix(__prefix: ReadableBuffer) -> bytes - changed:
method bytes.removesuffix(__suffix: bytes) -> bytes → method bytes.removesuffix(__suffix: ReadableBuffer) -> bytes - changed:
method bytes.replace(__old: bytes, __new: bytes, __count: SupportsIndex=…) -> bytes → method bytes.replace(__old: ReadableBuffer, __new: ReadableBuffer, __count: SupportsIndex=…) -> bytes - changed:
method bytes.rfind(__sub: bytes | SupportsIndex, __start: SupportsIndex | None=…, __end: SupportsIndex | None=…) -> int → method bytes.rfind(__sub: ReadableBuffer | SupportsIndex, __start: SupportsIndex | None=…, __end: SupportsIndex | None=…) -> int - changed:
method bytes.rindex(__sub: bytes | SupportsIndex, __start: SupportsIndex | None=…, __end: SupportsIndex | None=…) -> int → method bytes.rindex(__sub: ReadableBuffer | SupportsIndex, __start: SupportsIndex | None=…, __end: SupportsIndex | None=…) -> int - changed:
method bytes.rjust(__width: SupportsIndex, __fillchar: bytes=…) -> bytes → method bytes.rjust(__width: SupportsIndex, __fillchar: bytes | bytearray=…) -> bytes - changed:
method bytes.rpartition(__sep: bytes) -> tuple[bytes, bytes, bytes] → method bytes.rpartition(__sep: ReadableBuffer) -> tuple[bytes, bytes, bytes] - changed:
method bytes.rsplit(sep: bytes | None=…, maxsplit: SupportsIndex=…) -> list[bytes] → method bytes.rsplit(sep: ReadableBuffer | None=…, maxsplit: SupportsIndex=…) -> list[bytes] - changed:
method bytes.rstrip(__bytes: bytes | None=…) -> bytes → method bytes.rstrip(__bytes: ReadableBuffer | None=…) -> bytes - changed:
method bytes.split(sep: bytes | None=…, maxsplit: SupportsIndex=…) -> list[bytes] → method bytes.split(sep: ReadableBuffer | None=…, maxsplit: SupportsIndex=…) -> list[bytes] - changed:
method bytes.startswith(__prefix: bytes | tuple[bytes, ...], __start: SupportsIndex | None=…, __end: SupportsIndex | None=…) -> bool → method bytes.startswith(__prefix: ReadableBuffer | tuple[ReadableBuffer, ...], __start: SupportsIndex | None=…, __end: SupportsIndex | None=…) -> bool - changed:
method bytes.strip(__bytes: bytes | None=…) -> bytes → method bytes.strip(__bytes: ReadableBuffer | None=…) -> bytes - changed:
method bytes.translate(__table: bytes | None, delete: bytes=…) -> bytes → method bytes.translate(__table: ReadableBuffer | None, delete: bytes=…) -> bytes - changed:
static method bytearray.maketrans(__frm: bytes, __to: bytes) -> bytes → static method bytearray.maketrans(__frm: ReadableBuffer, __to: ReadableBuffer) -> bytes - changed:
static method bytes.maketrans(__frm: bytes, __to: bytes) -> bytes → static method bytes.maketrans(__frm: ReadableBuffer, __to: ReadableBuffer) -> bytes - changed:
static method int.from_bytes(bytes: Iterable[SupportsIndex] | SupportsBytes, byteorder: Literal['little', 'big'], *, signed: bool=…) -> Self → static method int.from_bytes(bytes: Iterable[SupportsIndex] | SupportsBytes | ReadableBuffer, byteorder: Literal['little', 'big'], *, signed: bool=…) -> Self
- changed:
function handler(info: _ExcInfo | None=…) -> None → function handler(info: OptExcInfo | None=…) -> None - changed:
function html(einfo: _ExcInfo, context: int=…) -> str → function html(einfo: OptExcInfo, context: int=…) -> str - changed:
function text(einfo: _ExcInfo, context: int=…) -> str → function text(einfo: OptExcInfo, context: int=…) -> str - changed:
method Hook.handle(info: _ExcInfo | None=…) -> None → method Hook.handle(info: OptExcInfo | None=…) -> None
- changed:
constructor DictReader(f: Iterable[str], fieldnames: Sequence[_T], restkey: str | None=…, restval: str | None=…, dialect: _DialectLike=…, *args: Any, **kwds: Any) -> None | (f: Iterable[str], fieldnames: Sequence[str] | None=…, restkey: str | None=…, restval: str | None=…, dialect: _DialectLike=…, *args: Any, **kwds: Any) -> None → constructor DictReader(f: Iterable[str], fieldnames: Sequence[_T], restkey: str | None=…, restval: str | None=…, dialect: _DialectLike=…, *, delimiter: str=…, quotechar: str | None=…, escapechar: str | None=…, doublequote: bool=…, skipinitialspace: bool=…, lineterminator: str=…, quoting: _QuotingType=…, strict: bool=…) -> None | (f: Iterable[str], fieldnames: Sequence[str] | None=…, restkey: str… - changed:
constructor DictWriter(f: Any, fieldnames: Collection[_T], restval: Any | None=…, extrasaction: str=…, dialect: _DialectLike=…, *args: Any, **kwds: Any) -> None → constructor DictWriter(f: SupportsWrite[str], fieldnames: Collection[_T], restval: Any | None=…, extrasaction: Literal['raise', 'ignore']=…, dialect: _DialectLike=…, *, delimiter: str=…, quotechar: str | None=…, escapechar: str | None=…, doublequote: bool=…, skipinitialspace: bool=…, lineterminator: str=…, quoting: _QuotingType=…, strict: bool=…) -> None - changed:
field DictWriter.extrasaction: str → field DictWriter.extrasaction: Literal['raise', 'ignore'] - changed:
field excel.quoting: int → field excel.quoting: _QuotingType - changed:
field unix_dialect.quoting: int → field unix_dialect.quoting: _QuotingType
- changed:
variable LPBOOL → variable LPBOOL: TypeAlias - changed:
variable LPBYTE → variable LPBYTE: TypeAlias - changed:
variable LPCOLORREF → variable LPCOLORREF: TypeAlias - changed:
variable LPDWORD → variable LPDWORD: TypeAlias - changed:
variable LPFILETIME → variable LPFILETIME: TypeAlias - changed:
variable LPHANDLE → variable LPHANDLE: TypeAlias - changed:
variable LPHKL → variable LPHKL: TypeAlias - changed:
variable LPINT → variable LPINT: TypeAlias - changed:
variable LPLONG → variable LPLONG: TypeAlias - changed:
variable LPMSG → variable LPMSG: TypeAlias - changed:
variable LPPOINT → variable LPPOINT: TypeAlias - changed:
variable LPRECT → variable LPRECT: TypeAlias - changed:
variable LPRECTL → variable LPRECTL: TypeAlias - changed:
variable LPSC_HANDLE → variable LPSC_HANDLE: TypeAlias - changed:
variable LPSIZE → variable LPSIZE: TypeAlias - changed:
variable LPSIZEL → variable LPSIZEL: TypeAlias - changed:
variable LPUINT → variable LPUINT: TypeAlias - changed:
variable LPWIN32_FIND_DATAA → variable LPWIN32_FIND_DATAA: TypeAlias - changed:
variable LPWIN32_FIND_DATAW → variable LPWIN32_FIND_DATAW: TypeAlias - changed:
variable LPWORD → variable LPWORD: TypeAlias - changed:
variable PBOOL → variable PBOOL: TypeAlias - changed:
variable PBOOLEAN → variable PBOOLEAN: TypeAlias - changed:
variable PBYTE → variable PBYTE: TypeAlias - changed:
variable PCHAR → variable PCHAR: TypeAlias - changed:
variable PDWORD → variable PDWORD: TypeAlias - changed:
variable PFILETIME → variable PFILETIME: TypeAlias - changed:
variable PFLOAT → variable PFLOAT: TypeAlias - changed:
variable PHANDLE → variable PHANDLE: TypeAlias - changed:
variable PHKEY → variable PHKEY: TypeAlias - changed:
variable PINT → variable PINT: TypeAlias - changed:
variable PLARGE_INTEGER → variable PLARGE_INTEGER: TypeAlias - changed:
variable PLCID → variable PLCID: TypeAlias - changed:
variable PLONG → variable PLONG: TypeAlias - changed:
variable PMSG → variable PMSG: TypeAlias - changed:
variable PPOINT → variable PPOINT: TypeAlias - changed:
variable PPOINTL → variable PPOINTL: TypeAlias - changed:
variable PRECT → variable PRECT: TypeAlias - changed:
variable PRECTL → variable PRECTL: TypeAlias - changed:
variable PSHORT → variable PSHORT: TypeAlias - changed:
variable PSIZE → variable PSIZE: TypeAlias - changed:
variable PSIZEL → variable PSIZEL: TypeAlias - changed:
variable PSMALL_RECT → variable PSMALL_RECT: TypeAlias - changed:
variable PUINT → variable PUINT: TypeAlias - changed:
variable PULARGE_INTEGER → variable PULARGE_INTEGER: TypeAlias - changed:
variable PULONG → variable PULONG: TypeAlias - changed:
variable PUSHORT → variable PUSHORT: TypeAlias - changed:
variable PWCHAR → variable PWCHAR: TypeAlias - changed:
variable PWIN32_FIND_DATAA → variable PWIN32_FIND_DATAA: TypeAlias - changed:
variable PWIN32_FIND_DATAW → variable PWIN32_FIND_DATAW: TypeAlias - changed:
variable PWORD → variable PWORD: TypeAlias
- changed:
function dataclass(__cls: type[_T]) -> type[_T] | (__cls: None) -> Callable[[type[_T]], type[_T]] | (_cls: type[_T]) -> type[_T] | (_cls: None) -> Callable[[type[_T]], type[_T]] | (*, init: bool=…, repr: bool=…, eq: bool=…, order: bool=…, unsafe_hash: bool=…, frozen: bool=…, match_args: bool=…, kw_only: bool=…, slots: bool=…) -> Callable[[type[_T]], type[_T]] | (*, init: bool=…, repr: bool=…, eq:… → function dataclass(__cls: type[_T]) -> type[_T] | (__cls: None) -> Callable[[type[_T]], type[_T]] | (_cls: type[_T]) -> type[_T] | (_cls: None) -> Callable[[type[_T]], type[_T]] | (*, init: bool=…, repr: bool=…, eq: bool=…, order: bool=…, unsafe_hash: bool=…, frozen: bool=…, match_args: bool=…, kw_only: bool=…, slots: bool=…, weakref_slot: bool=…) -> Callable[[type[_T]], type[_T]] | (*, init: boo… - changed:
function make_dataclass(cls_name: str, fields: Iterable[str | tuple[str, type] | tuple[str, type, Field[Any]]], *, bases: tuple[type, ...]=…, namespace: dict[str, Any] | None=…, init: bool=…, repr: bool=…, eq: bool=…, order: bool=…, unsafe_hash: bool=…, frozen: bool=…) -> type → function make_dataclass(cls_name: str, fields: Iterable[str | tuple[str, type] | tuple[str, type, Any]], *, bases: tuple[type, ...]=…, namespace: dict[str, Any] | None=…, init: bool=…, repr: bool=…, eq: bool=…, order: bool=…, unsafe_hash: bool=…, frozen: bool=…) -> type
- removed:
class Clamped(DecimalException) - removed:
class Context - removed:
class ConversionSyntax(InvalidOperation) - removed:
class Decimal - removed:
class DecimalException(ArithmeticError) - removed:
class DecimalTuple(NamedTuple) - removed:
class DivisionByZero(DecimalException, ZeroDivisionError) - removed:
class DivisionImpossible(InvalidOperation) - removed:
class DivisionUndefined(InvalidOperation, ZeroDivisionError) - removed:
class FloatOperation(DecimalException, TypeError) - removed:
class Inexact(DecimalException) - removed:
class InvalidContext(InvalidOperation) - removed:
class InvalidOperation(DecimalException) - removed:
class Overflow(Inexact, Rounded) - removed:
class Rounded(DecimalException) - removed:
class Subnormal(DecimalException) - removed:
class Underflow(Inexact, Rounded, Subnormal) - removed:
constructor Context(prec: int | None=…, rounding: str | None=…, Emin: int | None=…, Emax: int | None=…, capitals: int | None=…, clamp: int | None=…, flags: None | dict[_TrapType, bool] | Container[_TrapType]=…, traps: None | dict[_TrapType, bool] | Container[_TrapType]=…, _ignored_flags: list[_TrapType] | None=…) -> None - removed:
field Context.Emax: int - removed:
field Context.Emin: int - removed:
field Context.capitals: int - removed:
field Context.clamp: int - removed:
field Context.flags: dict[_TrapType, bool] - removed:
field Context.prec: int - removed:
field Context.rounding: str - removed:
field Context.traps: dict[_TrapType, bool] - removed:
field DecimalTuple.digits: tuple[int, ...] - removed:
field DecimalTuple.exponent: int - removed:
field DecimalTuple.sign: int - removed:
function getcontext() -> Context - removed:
function localcontext(ctx: Context | None=…) -> _ContextManager - removed:
function setcontext(__context: Context) -> None - removed:
method Context.Etiny() -> int - removed:
method Context.Etop() -> int - removed:
method Context.abs(__x: _Decimal) -> Decimal - removed:
method Context.add(__x: _Decimal, __y: _Decimal) -> Decimal - removed:
method Context.canonical(__x: Decimal) -> Decimal - removed:
method Context.clear_flags() -> None - removed:
method Context.clear_traps() -> None - removed:
method Context.compare(__x: _Decimal, __y: _Decimal) -> Decimal - removed:
method Context.compare_signal(__x: _Decimal, __y: _Decimal) -> Decimal - removed:
method Context.compare_total(__x: _Decimal, __y: _Decimal) -> Decimal - removed:
method Context.compare_total_mag(__x: _Decimal, __y: _Decimal) -> Decimal - removed:
method Context.copy() -> Context - removed:
method Context.copy_abs(__x: _Decimal) -> Decimal - removed:
method Context.copy_decimal(__x: _Decimal) -> Decimal - removed:
method Context.copy_negate(__x: _Decimal) -> Decimal - removed:
method Context.copy_sign(__x: _Decimal, __y: _Decimal) -> Decimal - removed:
method Context.create_decimal(__num: _DecimalNew=…) -> Decimal - removed:
method Context.create_decimal_from_float(__f: float) -> Decimal - removed:
method Context.divide(__x: _Decimal, __y: _Decimal) -> Decimal - removed:
method Context.divide_int(__x: _Decimal, __y: _Decimal) -> Decimal - removed:
method Context.divmod(__x: _Decimal, __y: _Decimal) -> tuple[Decimal, Decimal] - removed:
method Context.exp(__x: _Decimal) -> Decimal - removed:
method Context.fma(__x: _Decimal, __y: _Decimal, __z: _Decimal) -> Decimal - removed:
method Context.is_canonical(__x: _Decimal) -> bool - removed:
method Context.is_finite(__x: _Decimal) -> bool - removed:
method Context.is_infinite(__x: _Decimal) -> bool - removed:
method Context.is_nan(__x: _Decimal) -> bool - removed:
method Context.is_normal(__x: _Decimal) -> bool - removed:
method Context.is_qnan(__x: _Decimal) -> bool - removed:
method Context.is_signed(__x: _Decimal) -> bool - removed:
method Context.is_snan(__x: _Decimal) -> bool - removed:
method Context.is_subnormal(__x: _Decimal) -> bool - removed:
method Context.is_zero(__x: _Decimal) -> bool - removed:
method Context.ln(__x: _Decimal) -> Decimal - removed:
method Context.log10(__x: _Decimal) -> Decimal - removed:
method Context.logb(__x: _Decimal) -> Decimal - removed:
method Context.logical_and(__x: _Decimal, __y: _Decimal) -> Decimal - removed:
method Context.logical_invert(__x: _Decimal) -> Decimal - removed:
method Context.logical_or(__x: _Decimal, __y: _Decimal) -> Decimal - removed:
method Context.logical_xor(__x: _Decimal, __y: _Decimal) -> Decimal - removed:
method Context.max(__x: _Decimal, __y: _Decimal) -> Decimal - removed:
method Context.max_mag(__x: _Decimal, __y: _Decimal) -> Decimal - removed:
method Context.min(__x: _Decimal, __y: _Decimal) -> Decimal - removed:
method Context.min_mag(__x: _Decimal, __y: _Decimal) -> Decimal - removed:
method Context.minus(__x: _Decimal) -> Decimal - removed:
method Context.multiply(__x: _Decimal, __y: _Decimal) -> Decimal - removed:
method Context.next_minus(__x: _Decimal) -> Decimal - removed:
method Context.next_plus(__x: _Decimal) -> Decimal - removed:
method Context.next_toward(__x: _Decimal, __y: _Decimal) -> Decimal - removed:
method Context.normalize(__x: _Decimal) -> Decimal - removed:
method Context.number_class(__x: _Decimal) -> str - removed:
method Context.plus(__x: _Decimal) -> Decimal - removed:
method Context.power(a: _Decimal, b: _Decimal, modulo: _Decimal | None=…) -> Decimal - removed:
method Context.quantize(__x: _Decimal, __y: _Decimal) -> Decimal - removed:
method Context.radix() -> Decimal - removed:
method Context.remainder(__x: _Decimal, __y: _Decimal) -> Decimal - removed:
method Context.remainder_near(__x: _Decimal, __y: _Decimal) -> Decimal - removed:
method Context.rotate(__x: _Decimal, __y: _Decimal) -> Decimal - removed:
method Context.same_quantum(__x: _Decimal, __y: _Decimal) -> bool - removed:
method Context.scaleb(__x: _Decimal, __y: _Decimal) -> Decimal - removed:
method Context.shift(__x: _Decimal, __y: _Decimal) -> Decimal - removed:
method Context.sqrt(__x: _Decimal) -> Decimal - removed:
method Context.subtract(__x: _Decimal, __y: _Decimal) -> Decimal - removed:
method Context.to_eng_string(__x: _Decimal) -> str - removed:
method Context.to_integral(__x: _Decimal) -> Decimal - removed:
method Context.to_integral_exact(__x: _Decimal) -> Decimal - removed:
method Context.to_integral_value(__x: _Decimal) -> Decimal - removed:
method Context.to_sci_string(__x: _Decimal) -> str - removed:
method Decimal.adjusted() -> int - removed:
method Decimal.as_integer_ratio() -> tuple[int, int] - removed:
method Decimal.as_tuple() -> DecimalTuple - removed:
method Decimal.canonical() -> Decimal - removed:
method Decimal.compare(other: _Decimal, context: Context | None=…) -> Decimal - removed:
method Decimal.compare_signal(other: _Decimal, context: Context | None=…) -> Decimal - removed:
method Decimal.compare_total(other: _Decimal, context: Context | None=…) -> Decimal - removed:
method Decimal.compare_total_mag(other: _Decimal, context: Context | None=…) -> Decimal - removed:
method Decimal.conjugate() -> Decimal - removed:
method Decimal.copy_abs() -> Decimal - removed:
method Decimal.copy_negate() -> Decimal - removed:
method Decimal.copy_sign(other: _Decimal, context: Context | None=…) -> Decimal - removed:
method Decimal.exp(context: Context | None=…) -> Decimal - removed:
method Decimal.fma(other: _Decimal, third: _Decimal, context: Context | None=…) -> Decimal - removed:
method Decimal.is_canonical() -> bool - removed:
method Decimal.is_finite() -> bool - removed:
method Decimal.is_infinite() -> bool - removed:
method Decimal.is_nan() -> bool - removed:
method Decimal.is_normal(context: Context | None=…) -> bool - removed:
method Decimal.is_qnan() -> bool - removed:
method Decimal.is_signed() -> bool - removed:
method Decimal.is_snan() -> bool - removed:
method Decimal.is_subnormal(context: Context | None=…) -> bool - removed:
method Decimal.is_zero() -> bool - removed:
method Decimal.ln(context: Context | None=…) -> Decimal - removed:
method Decimal.log10(context: Context | None=…) -> Decimal - removed:
method Decimal.logb(context: Context | None=…) -> Decimal - removed:
method Decimal.logical_and(other: _Decimal, context: Context | None=…) -> Decimal - removed:
method Decimal.logical_invert(context: Context | None=…) -> Decimal - removed:
method Decimal.logical_or(other: _Decimal, context: Context | None=…) -> Decimal - removed:
method Decimal.logical_xor(other: _Decimal, context: Context | None=…) -> Decimal - removed:
method Decimal.max(other: _Decimal, context: Context | None=…) -> Decimal - removed:
method Decimal.max_mag(other: _Decimal, context: Context | None=…) -> Decimal - removed:
method Decimal.min(other: _Decimal, context: Context | None=…) -> Decimal - removed:
method Decimal.min_mag(other: _Decimal, context: Context | None=…) -> Decimal - removed:
method Decimal.next_minus(context: Context | None=…) -> Decimal - removed:
method Decimal.next_plus(context: Context | None=…) -> Decimal - removed:
method Decimal.next_toward(other: _Decimal, context: Context | None=…) -> Decimal - removed:
method Decimal.normalize(context: Context | None=…) -> Decimal - removed:
method Decimal.number_class(context: Context | None=…) -> str - removed:
method Decimal.quantize(exp: _Decimal, rounding: str | None=…, context: Context | None=…) -> Decimal - removed:
method Decimal.radix() -> Decimal - removed:
method Decimal.remainder_near(other: _Decimal, context: Context | None=…) -> Decimal - removed:
method Decimal.rotate(other: _Decimal, context: Context | None=…) -> Decimal - removed:
method Decimal.same_quantum(other: _Decimal, context: Context | None=…) -> bool - removed:
method Decimal.scaleb(other: _Decimal, context: Context | None=…) -> Decimal - removed:
method Decimal.shift(other: _Decimal, context: Context | None=…) -> Decimal - removed:
method Decimal.sqrt(context: Context | None=…) -> Decimal - removed:
method Decimal.to_eng_string(context: Context | None=…) -> str - removed:
method Decimal.to_integral(rounding: str | None=…, context: Context | None=…) -> Decimal - removed:
method Decimal.to_integral_exact(rounding: str | None=…, context: Context | None=…) -> Decimal - removed:
method Decimal.to_integral_value(rounding: str | None=…, context: Context | None=…) -> Decimal - removed:
property Decimal.imag -> Decimal - removed:
property Decimal.real -> Decimal - removed:
static method Decimal.from_float(__f: float) -> Self - removed:
variable BasicContext: Context - removed:
variable DefaultContext: Context - removed:
variable ExtendedContext: Context - removed:
variable HAVE_CONTEXTVAR: bool - removed:
variable HAVE_THREADS: bool - removed:
variable MAX_EMAX: int - removed:
variable MAX_PREC: int - removed:
variable MIN_EMIN: int - removed:
variable MIN_ETINY: int - removed:
variable ROUND_05UP: str - removed:
variable ROUND_CEILING: str - removed:
variable ROUND_DOWN: str - removed:
variable ROUND_FLOOR: str - removed:
variable ROUND_HALF_DOWN: str - removed:
variable ROUND_HALF_EVEN: str - removed:
variable ROUND_HALF_UP: str - removed:
variable ROUND_UP: str
- added:
field Instruction.positions: Positions | None
- changed:
constructor UnexpectedException(test: DocTest, example: Example, exc_info: _ExcInfo) -> None → constructor UnexpectedException(test: DocTest, example: Example, exc_info: ExcInfo) -> None - changed:
field UnexpectedException.exc_info: _ExcInfo → field UnexpectedException.exc_info: ExcInfo - changed:
method DocTestRunner.report_unexpected_exception(out: _Out, test: DocTest, example: Example, exc_info: _ExcInfo) -> None → method DocTestRunner.report_unexpected_exception(out: _Out, test: DocTest, example: Example, exc_info: ExcInfo) -> None
- removed:
variable BytesFeedParser - removed:
variable FeedParser - added:
export BytesFeedParser - added:
export FeedParser
- changed:
constructor NullTranslations(fp: IO[str] | None=…) -> None → constructor NullTranslations(fp: _TranslationsReader | None=…) -> None - changed:
field GNUTranslations.BE_MAGIC: int → field GNUTranslations.BE_MAGIC: Final[int] - changed:
field GNUTranslations.LE_MAGIC: int → field GNUTranslations.LE_MAGIC: Final[int] - changed:
method NullTranslations.charset() -> Any → method NullTranslations.charset() -> str | None - changed:
method NullTranslations.info() -> Any → method NullTranslations.info() -> dict[str, str] - changed:
method NullTranslations.output_charset() -> Any → method NullTranslations.output_charset() -> str | None
- changed:
variable Package → variable Package: TypeAlias - changed:
variable Resource → variable Resource: TypeAlias
- added:
class FrameInfo(_FrameInfo) - added:
class Traceback(_Traceback) - added:
field FrameInfo.positions: dis.Positions | None - added:
field Traceback.positions: dis.Positions | None
- removed:
constructor zip_longest(*p: Iterable[Any], fillvalue: Any=…) -> None - removed:
variable Predicate - changed:
class zip_longest(Iterator[Any]) → class zip_longest(Iterator[_T_co], Generic[_T_co]) - changed:
constructor dropwhile(__predicate: Predicate[_T], __iterable: Iterable[_T]) -> None → constructor dropwhile(__predicate: _Predicate[_T], __iterable: Iterable[_T]) -> None - changed:
constructor filterfalse(__predicate: Predicate[_T] | None, __iterable: Iterable[_T]) -> None → constructor filterfalse(__predicate: _Predicate[_T] | None, __iterable: Iterable[_T]) -> None - changed:
constructor takewhile(__predicate: Predicate[_T], __iterable: Iterable[_T]) -> None → constructor takewhile(__predicate: _Predicate[_T], __iterable: Iterable[_T]) -> None
- added:
function login_tty(__fd: int) -> None
- changed:
function loads(data: bytes, *, fix_imports: bool=…, encoding: str=…, errors: str=…) -> Any → function loads(data: ReadableBuffer, *, fix_imports: bool=…, encoding: str=…, errors: str=…) -> Any
- changed:
function findall(pattern: AnyStr, string: AnyStr, flags: _FlagsType=…) -> list[Any] | (pattern: Pattern[AnyStr], string: AnyStr, flags: _FlagsType=…) -> list[Any] → function findall(pattern: str | Pattern[str], string: str, flags: _FlagsType=…) -> list[Any] | (pattern: bytes | Pattern[bytes], string: ReadableBuffer, flags: _FlagsType=…) -> list[Any] - changed:
function finditer(pattern: AnyStr, string: AnyStr, flags: _FlagsType=…) -> Iterator[Match[AnyStr]] | (pattern: Pattern[AnyStr], string: AnyStr, flags: _FlagsType=…) -> Iterator[Match[AnyStr]] → function finditer(pattern: str | Pattern[str], string: str, flags: _FlagsType=…) -> Iterator[Match[str]] | (pattern: bytes | Pattern[bytes], string: ReadableBuffer, flags: _FlagsType=…) -> Iterator[Match[bytes]] - changed:
function fullmatch(pattern: AnyStr, string: AnyStr, flags: _FlagsType=…) -> Match[AnyStr] | None | (pattern: Pattern[AnyStr], string: AnyStr, flags: _FlagsType=…) -> Match[AnyStr] | None → function fullmatch(pattern: str | Pattern[str], string: str, flags: _FlagsType=…) -> Match[str] | None | (pattern: bytes | Pattern[bytes], string: ReadableBuffer, flags: _FlagsType=…) -> Match[bytes] | None - changed:
function match(pattern: AnyStr, string: AnyStr, flags: _FlagsType=…) -> Match[AnyStr] | None | (pattern: Pattern[AnyStr], string: AnyStr, flags: _FlagsType=…) -> Match[AnyStr] | None → function match(pattern: str | Pattern[str], string: str, flags: _FlagsType=…) -> Match[str] | None | (pattern: bytes | Pattern[bytes], string: ReadableBuffer, flags: _FlagsType=…) -> Match[bytes] | None - changed:
function search(pattern: AnyStr, string: AnyStr, flags: _FlagsType=…) -> Match[AnyStr] | None | (pattern: Pattern[AnyStr], string: AnyStr, flags: _FlagsType=…) -> Match[AnyStr] | None → function search(pattern: str | Pattern[str], string: str, flags: _FlagsType=…) -> Match[str] | None | (pattern: bytes | Pattern[bytes], string: ReadableBuffer, flags: _FlagsType=…) -> Match[bytes] | None - changed:
function split(pattern: AnyStr, string: AnyStr, maxsplit: int=…, flags: _FlagsType=…) -> list[AnyStr | Any] | (pattern: Pattern[AnyStr], string: AnyStr, maxsplit: int=…, flags: _FlagsType=…) -> list[AnyStr | Any] → function split(pattern: str | Pattern[str], string: str, maxsplit: int=…, flags: _FlagsType=…) -> list[str | Any] | (pattern: bytes | Pattern[bytes], string: ReadableBuffer, maxsplit: int=…, flags: _FlagsType=…) -> list[bytes | Any] - changed:
function sub(pattern: AnyStr, repl: AnyStr, string: AnyStr, count: int=…, flags: _FlagsType=…) -> AnyStr | (pattern: AnyStr, repl: Callable[[Match[AnyStr]], AnyStr], string: AnyStr, count: int=…, flags: _FlagsType=…) -> AnyStr | (pattern: Pattern[AnyStr], repl: AnyStr, string: AnyStr, count: int=…, flags: _FlagsType=…) -> AnyStr | (pattern: Pattern[AnyStr], repl: Callable[[Match[AnyStr]], AnyStr]… → function sub(pattern: str | Pattern[str], repl: str | Callable[[Match[str]], str], string: str, count: int=…, flags: _FlagsType=…) -> str | (pattern: bytes | Pattern[bytes], repl: ReadableBuffer | Callable[[Match[bytes]], ReadableBuffer], string: ReadableBuffer, count: int=…, flags: _FlagsType=…) -> bytes - changed:
function subn(pattern: AnyStr, repl: AnyStr, string: AnyStr, count: int=…, flags: _FlagsType=…) -> tuple[AnyStr, int] | (pattern: AnyStr, repl: Callable[[Match[AnyStr]], AnyStr], string: AnyStr, count: int=…, flags: _FlagsType=…) -> tuple[AnyStr, int] | (pattern: Pattern[AnyStr], repl: AnyStr, string: AnyStr, count: int=…, flags: _FlagsType=…) -> tuple[AnyStr, int] | (pattern: Pattern[AnyStr], re… → function subn(pattern: str | Pattern[str], repl: str | Callable[[Match[str]], str], string: str, count: int=…, flags: _FlagsType=…) -> tuple[str, int] | (pattern: bytes | Pattern[bytes], repl: ReadableBuffer | Callable[[Match[bytes]], ReadableBuffer], string: ReadableBuffer, count: int=…, flags: _FlagsType=…) -> tuple[bytes, int]
- removed:
field Connection.DataError: Any - removed:
field Connection.DatabaseError: Any - removed:
field Connection.Error: Any - removed:
field Connection.IntegrityError: Any - removed:
field Connection.InterfaceError: Any - removed:
field Connection.InternalError: Any - removed:
field Connection.NotSupportedError: Any - removed:
field Connection.OperationalError: Any - removed:
field Connection.ProgrammingError: Any - removed:
field Connection.Warning: Any - removed:
field Connection.in_transaction: Any - removed:
field Connection.total_changes: Any - removed:
field Cursor.connection: Any - removed:
field Cursor.description: Any - removed:
field Cursor.lastrowid: Any - removed:
field Cursor.rowcount: int - changed:
class Row → class Row(Generic[_T_co]) - changed:
constructor Connection(*args: Any, **kwargs: Any) -> None → constructor Connection(database: _DatabaseArg, timeout: float=…, detect_types: int=…, isolation_level: str | None=…, check_same_thread: bool=…, factory: type[Connection] | None=…, cached_statements: int=…, uri: bool=…) -> None - changed:
constructor Cursor(*args: Any, **kwargs: Any) -> None → constructor Cursor(__cursor: Connection) -> None - changed:
constructor PrepareProtocol(*args: Any, **kwargs: Any) -> None → constructor PrepareProtocol(*args: object, **kwargs: object) -> None - changed:
constructor Row(*args: Any, **kwargs: Any) -> None → constructor Row(__cursor: Cursor, __data: tuple[_T_co, ...]) -> None - changed:
field Connection.isolation_level: Any → field Connection.isolation_level: str | None - changed:
field Cursor.arraysize: Any → field Cursor.arraysize: int - changed:
field Cursor.row_factory: Any → field Cursor.row_factory: Callable[[Cursor, Row[Any]], object] | None - changed:
function adapt(obj, protocol, alternate) → function adapt(__obj: Any, __proto: Any) -> Any | (__obj: Any, __proto: Any, __alt: _T) -> Any | _T - changed:
function connect(database: bytes | str, timeout: float=…, detect_types: int=…, isolation_level: str | None=…, check_same_thread: bool=…, factory: type[Connection] | None=…, cached_statements: int=…, uri: bool=…) -> Connection → function connect(database: _DatabaseArg, timeout: float=…, detect_types: int=…, isolation_level: str | None=…, check_same_thread: bool=…, factory: type[Connection] | None=…, cached_statements: int=…, uri: bool=…) -> Connection - changed:
function register_adapter(__type: type[_T], __caster: Callable[[_T], int | float | str | bytes]) -> None → function register_adapter(__type: type[_T], __caster: _Adapter[_T]) -> None - changed:
function register_converter(__name: str, __converter: Callable[[bytes], Any]) -> None → function register_converter(__name: str, __converter: _Converter) -> None - changed:
method Connection.create_collation(__name: str, __callback: Any) -> None → method Connection.create_collation(__name: str, __callback: Callable[[str, str], int | SupportsIndex] | None) -> None - changed:
method Connection.create_function(name: str, num_params: int, func: Any) -> None → method Connection.create_function(name: str, num_params: int, func: Callable[..., _SqliteData]) -> None - changed:
method Connection.cursor(cursorClass: type | None=…) -> Cursor → method Connection.cursor(cursorClass: None=…) -> Cursor | (cursorClass: Callable[[], _CursorT]) -> _CursorT - changed:
method Connection.enable_load_extension(enabled: bool) -> None → method Connection.enable_load_extension(__enabled: bool) -> None - changed:
method Connection.execute(sql: str, parameters: Iterable[Any]=…) -> Cursor → method Connection.execute(sql: str, parameters: _Parameters=…) -> Cursor - changed:
method Connection.executemany(__sql: str, __parameters: Iterable[Iterable[Any]]) -> Cursor → method Connection.executemany(__sql: str, __parameters: Iterable[_Parameters]) -> Cursor - changed:
method Connection.executescript(__sql_script: bytes | str) -> Cursor → method Connection.executescript(__sql_script: str) -> Cursor - changed:
method Connection.load_extension(path: str) -> None → method Connection.load_extension(__name: str) -> None - changed:
method Cursor.execute(__sql: str, __parameters: Iterable[Any]=…) -> Cursor → method Cursor.execute(__sql: str, __parameters: _Parameters=…) -> Self - changed:
method Cursor.executemany(__sql: str, __seq_of_parameters: Iterable[Iterable[Any]]) -> Cursor → method Cursor.executemany(__sql: str, __seq_of_parameters: Iterable[_Parameters]) -> Self - changed:
method Cursor.executescript(__sql_script: bytes | str) -> Cursor → method Cursor.executescript(__sql_script: str) -> Cursor - changed:
method Row.keys() → method Row.keys() -> list[str] - changed:
variable adapters: Any → variable adapters: dict[tuple[type[Any], type[Any]], _Adapter[Any]] - changed:
variable converters: Any → variable converters: dict[str, _Converter] - added:
class Blob - added:
method Blob.close() -> None - added:
method Blob.read(__length: int=…) -> bytes - added:
method Blob.seek(__offset: int, __whence: int=…) -> None - added:
method Blob.tell() -> int - added:
method Blob.write(__data: bytes) -> None - added:
method Connection.blobopen(__table: str, __column: str, __row: int, *, readonly: bool=…, name: str=…) -> Blob - added:
method Connection.create_window_function(__name: str, __num_params: Literal[1], __aggregate_class: Callable[[], _SingleParamWindowAggregateClass] | None) -> None | (__name: str, __num_params: Literal[-1], __aggregate_class: Callable[[], _AnyParamWindowAggregateClass] | None) -> None | (__name: str, __num_params: int, __aggregate_class: Callable[[], _WindowAggregateClass] | None) -> None - added:
method Connection.deserialize(__data: ReadableBuffer, *, name: str=…) -> None - added:
method Connection.getlimit(__category: int) -> int - added:
method Connection.serialize(*, name: str=…) -> bytes - added:
method Connection.setlimit(__category: int, __limit: int) -> int - added:
property Connection.DataError -> type[sqlite3.DataError] - added:
property Connection.DatabaseError -> type[sqlite3.DatabaseError] - added:
property Connection.Error -> type[sqlite3.Error] - added:
property Connection.IntegrityError -> type[sqlite3.IntegrityError] - added:
property Connection.InterfaceError -> type[sqlite3.InterfaceError] - added:
property Connection.InternalError -> type[sqlite3.InternalError] - added:
property Connection.NotSupportedError -> type[sqlite3.NotSupportedError] - added:
property Connection.OperationalError -> type[sqlite3.OperationalError] - added:
property Connection.ProgrammingError -> type[sqlite3.ProgrammingError] - added:
property Connection.Warning -> type[sqlite3.Warning] - added:
property Connection.in_transaction -> bool - added:
property Connection.total_changes -> int - added:
property Cursor.connection -> Connection - added:
property Cursor.description -> tuple[tuple[str, None, None, None, None, None, None], ...] | Any - added:
property Cursor.lastrowid -> int | None - added:
property Cursor.rowcount -> int - added:
variable SQLITE_ABORT: int - added:
variable SQLITE_ABORT_ROLLBACK: int - added:
variable SQLITE_AUTH: int - added:
variable SQLITE_AUTH_USER: int - added:
variable SQLITE_BUSY: int - added:
variable SQLITE_BUSY_RECOVERY: int - added:
variable SQLITE_BUSY_SNAPSHOT: int - added:
variable SQLITE_BUSY_TIMEOUT: int - added:
variable SQLITE_CANTOPEN: int - added:
variable SQLITE_CANTOPEN_CONVPATH: int - added:
variable SQLITE_CANTOPEN_DIRTYWAL: int - added:
variable SQLITE_CANTOPEN_FULLPATH: int - added:
variable SQLITE_CANTOPEN_ISDIR: int - added:
variable SQLITE_CANTOPEN_NOTEMPDIR: int - added:
variable SQLITE_CANTOPEN_SYMLINK: int - added:
variable SQLITE_CONSTRAINT: int - added:
variable SQLITE_CONSTRAINT_CHECK: int - added:
variable SQLITE_CONSTRAINT_COMMITHOOK: int - added:
variable SQLITE_CONSTRAINT_FOREIGNKEY: int - added:
variable SQLITE_CONSTRAINT_FUNCTION: int - added:
variable SQLITE_CONSTRAINT_NOTNULL: int - added:
variable SQLITE_CONSTRAINT_PINNED: int - added:
variable SQLITE_CONSTRAINT_PRIMARYKEY: int - added:
variable SQLITE_CONSTRAINT_ROWID: int - added:
variable SQLITE_CONSTRAINT_TRIGGER: int - added:
variable SQLITE_CONSTRAINT_UNIQUE: int - added:
variable SQLITE_CONSTRAINT_VTAB: int - added:
variable SQLITE_CORRUPT: int - added:
variable SQLITE_CORRUPT_INDEX: int - added:
variable SQLITE_CORRUPT_SEQUENCE: int - added:
variable SQLITE_CORRUPT_VTAB: int - added:
variable SQLITE_EMPTY: int - added:
variable SQLITE_ERROR: int - added:
variable SQLITE_ERROR_MISSING_COLLSEQ: int - added:
variable SQLITE_ERROR_RETRY: int - added:
variable SQLITE_ERROR_SNAPSHOT: int - added:
variable SQLITE_FORMAT: int - added:
variable SQLITE_FULL: int - added:
variable SQLITE_INTERNAL: int - added:
variable SQLITE_INTERRUPT: int - added:
variable SQLITE_IOERR: int - added:
variable SQLITE_IOERR_ACCESS: int - added:
variable SQLITE_IOERR_AUTH: int - added:
variable SQLITE_IOERR_BEGIN_ATOMIC: int - added:
variable SQLITE_IOERR_BLOCKED: int - added:
variable SQLITE_IOERR_CHECKRESERVEDLOCK: int - added:
variable SQLITE_IOERR_CLOSE: int - added:
variable SQLITE_IOERR_COMMIT_ATOMIC: int - added:
variable SQLITE_IOERR_CONVPATH: int - added:
variable SQLITE_IOERR_CORRUPTFS: int - added:
variable SQLITE_IOERR_DATA: int - added:
variable SQLITE_IOERR_DELETE: int - added:
variable SQLITE_IOERR_DELETE_NOENT: int - added:
variable SQLITE_IOERR_DIR_CLOSE: int - added:
variable SQLITE_IOERR_DIR_FSYNC: int - added:
variable SQLITE_IOERR_FSTAT: int - added:
variable SQLITE_IOERR_FSYNC: int - added:
variable SQLITE_IOERR_GETTEMPPATH: int - added:
variable SQLITE_IOERR_LOCK: int - added:
variable SQLITE_IOERR_MMAP: int - added:
variable SQLITE_IOERR_NOMEM: int - added:
variable SQLITE_IOERR_RDLOCK: int - added:
variable SQLITE_IOERR_READ: int - added:
variable SQLITE_IOERR_ROLLBACK_ATOMIC: int - added:
variable SQLITE_IOERR_SEEK: int - added:
variable SQLITE_IOERR_SHMLOCK: int - added:
variable SQLITE_IOERR_SHMMAP: int - added:
variable SQLITE_IOERR_SHMOPEN: int - added:
variable SQLITE_IOERR_SHMSIZE: int - added:
variable SQLITE_IOERR_SHORT_READ: int - added:
variable SQLITE_IOERR_TRUNCATE: int - added:
variable SQLITE_IOERR_UNLOCK: int - added:
variable SQLITE_IOERR_VNODE: int - added:
variable SQLITE_IOERR_WRITE: int - added:
variable SQLITE_LOCKED: int - added:
variable SQLITE_LOCKED_SHAREDCACHE: int - added:
variable SQLITE_LOCKED_VTAB: int - added:
variable SQLITE_MISMATCH: int - added:
variable SQLITE_MISUSE: int - added:
variable SQLITE_NOLFS: int - added:
variable SQLITE_NOMEM: int - added:
variable SQLITE_NOTADB: int - added:
variable SQLITE_NOTFOUND: int - added:
variable SQLITE_NOTICE: int - added:
variable SQLITE_NOTICE_RECOVER_ROLLBACK: int - added:
variable SQLITE_NOTICE_RECOVER_WAL: int - added:
variable SQLITE_OK_LOAD_PERMANENTLY: int - added:
variable SQLITE_OK_SYMLINK: int - added:
variable SQLITE_PERM: int - added:
variable SQLITE_PROTOCOL: int - added:
variable SQLITE_RANGE: int - added:
variable SQLITE_READONLY: int - added:
variable SQLITE_READONLY_CANTINIT: int - added:
variable SQLITE_READONLY_CANTLOCK: int - added:
variable SQLITE_READONLY_DBMOVED: int - added:
variable SQLITE_READONLY_DIRECTORY: int - added:
variable SQLITE_READONLY_RECOVERY: int - added:
variable SQLITE_READONLY_ROLLBACK: int - added:
variable SQLITE_ROW: int - added:
variable SQLITE_SCHEMA: int - added:
variable SQLITE_TOOBIG: int - added:
variable SQLITE_WARNING: int - added:
variable SQLITE_WARNING_AUTOINDEX: int
- changed:
variable Pattern → variable Pattern: TypeAlias - changed:
variable State → variable State: TypeAlias
- changed:
function median_grouped(data: Iterable[_NumberT], interval: _NumberT=…) -> _NumberT → function median_grouped(data: Iterable[_NumberT], interval: _NumberT=…) -> _NumberT | float
- changed:
field Popen.returncode: int → field Popen.returncode: int | Any
- changed:
function exc_info() -> _OptExcInfo → function exc_info() -> OptExcInfo
- added:
method Misc.info_patchlevel() -> _VersionInfoType
- changed:
variable Vec2D → variable Vec2D: TypeAlias
- changed:
function dataclass_transform(*, eq_default: bool=…, order_default: bool=…, kw_only_default: bool=…, field_descriptors: tuple[type[Any] | Callable[..., Any], ...]=…) -> Callable[[_T], _T] → function dataclass_transform(*, eq_default: bool=…, order_default: bool=…, kw_only_default: bool=…, field_specifiers: tuple[type[Any] | Callable[..., Any], ...]=…, **kwargs: object) -> Callable[[_T], _T] - added:
export LiteralString - added:
export NotRequired - added:
export Required - added:
export TypeVarTuple - added:
export Unpack - added:
export clear_overloads - added:
export dataclass_transform - added:
export get_overloads - added:
function clear_overloads() -> None - added:
function get_overloads(func: Callable[..., object]) -> Sequence[Callable[..., object]]
- changed:
method TestResult.addError(test: unittest.case.TestCase, err: _SysExcInfoType) -> None → method TestResult.addError(test: unittest.case.TestCase, err: OptExcInfo) -> None - changed:
method TestResult.addExpectedFailure(test: unittest.case.TestCase, err: _SysExcInfoType) -> None → method TestResult.addExpectedFailure(test: unittest.case.TestCase, err: OptExcInfo) -> None - changed:
method TestResult.addFailure(test: unittest.case.TestCase, err: _SysExcInfoType) -> None → method TestResult.addFailure(test: unittest.case.TestCase, err: OptExcInfo) -> None - changed:
method TestResult.addSubTest(test: unittest.case.TestCase, subtest: unittest.case.TestCase, err: _SysExcInfoType | None) -> None → method TestResult.addSubTest(test: unittest.case.TestCase, subtest: unittest.case.TestCase, err: OptExcInfo | None) -> None
- added:
property HTTPError.headers -> Message
- changed:
method BaseHandler.log_exception(exc_info: _exc_info) -> None → method BaseHandler.log_exception(exc_info: OptExcInfo) -> None - changed:
method BaseHandler.start_response(status: str, headers: list[tuple[str, str]], exc_info: _exc_info | None=…) -> Callable[[bytes], None] → method BaseHandler.start_response(status: str, headers: list[tuple[str, str]], exc_info: OptExcInfo | None=…) -> Callable[[bytes], None]
- added:
class ErrorStream(Protocol) - added:
class FileWrapper(Protocol) - added:
class InputStream(Protocol) - added:
class StartResponse(Protocol) - added:
method ErrorStream.flush() -> object - added:
method ErrorStream.write(__s: str) -> object - added:
method ErrorStream.writelines(__seq: list[str]) -> object - added:
method InputStream.read(__size: int=…) -> bytes - added:
method InputStream.readline(__size: int=…) -> bytes - added:
method InputStream.readlines(__hint: int=…) -> list[bytes] - added:
variable WSGIApplication: TypeAlias - added:
variable WSGIEnvironment: TypeAlias
- changed:
method XMLPullParser.feed(data: bytes) -> None → method XMLPullParser.feed(data: str | bytes) -> None
- added:
method ZipFile.mkdir(zinfo_or_directory: str | ZipInfo, mode: int=…) -> None
- added:
method TypeTraverserVisitor.visit_type_var_tuple(t: TypeVarTupleType) -> None
- added:
function time_spent_us(t0: float) -> int - added:
variable time_ref
- added:
method ExpressionVisitor.visit_type_var_tuple_expr(o: mypy.nodes.TypeVarTupleExpr) -> T - added:
method NodeVisitor.visit_type_var_tuple_expr(o: mypy.nodes.TypeVarTupleExpr) -> T
- changed:
class FnError(object) → class FnError
- added:
method IRBuilderVisitor.visit_type_var_tuple_expr(o: TypeVarTupleExpr) -> Value