Upgrading mypy 0.982 to 0.990
Unknown0.982 → 0.990
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.
- added:
function is_silent_import_module(manager: BuildManager, path: str) -> bool - added:
method State.detect_partially_defined_vars(type_map: dict[Expression, Type]) -> None
- removed:
field TypeChecker.suppress_none_errors - removed:
method TypeChecker.determine_type_of_class_member(sym: SymbolTableNode) -> Type | None - removed:
method TypeChecker.should_suppress_optional_error(related_types: list[Type]) -> bool - changed:
method TypeChecker.check_except_handler_test(n: Expression) -> Type → method TypeChecker.check_except_handler_test(n: Expression, is_star: bool) -> Type - changed:
method TypeChecker.check_func_def(defn: FuncItem, typ: CallableType, name: str | None) -> None → method TypeChecker.check_func_def(defn: FuncItem, typ: CallableType, name: str | None, allow_empty: bool=…) -> None - changed:
method TypeChecker.check_func_item(defn: FuncItem, type_override: CallableType | None=…, name: str | None=…) -> None → method TypeChecker.check_func_item(defn: FuncItem, type_override: CallableType | None=…, name: str | None=…, allow_empty: bool=…) -> None - changed:
method TypeChecker.check_simple_assignment(lvalue_type: Type | None, rvalue: Expression, context: Context, msg: str=…, lvalue_name: str=…, rvalue_name: str=…, *, code: ErrorCode | None=…) -> Type → method TypeChecker.check_simple_assignment(lvalue_type: Type | None, rvalue: Expression, context: Context, msg: ErrorMessage=…, lvalue_name: str=…, rvalue_name: str=…, *, notes: list[str] | None=…) -> Type - changed:
method TypeChecker.check_subtype(subtype: Type, supertype: Type, context: Context, msg: str | ErrorMessage=…, subtype_label: str | None=…, supertype_label: str | None=…, *, code: ErrorCode | None=…, outer_context: Context | None=…) -> bool → method TypeChecker.check_subtype(subtype: Type, supertype: Type, context: Context, msg: str, subtype_label: str | None=…, supertype_label: str | None=…, *, notes: list[str] | None=…, code: ErrorCode | None=…, outer_context: Context | None=…) -> bool | (subtype: Type, supertype: Type, context: Context, msg: ErrorMessage, subtype_label: str | None=…, supertype_label: str | None=…, *, notes: list[st… - changed:
method TypeChecker.note(msg: str, context: Context, offset: int=…, *, code: ErrorCode | None=…) -> None → method TypeChecker.note(msg: str | ErrorMessage, context: Context, offset: int=…, *, code: ErrorCode | None=…) -> None - added:
function get_property_type(t: ProperType) -> ProperType - added:
function is_property(defn: SymbolNode) -> bool - added:
method TypeChecker.add_any_attribute_to_type(typ: Type, name: str) -> Type - added:
method TypeChecker.analyze_range_native_int_type(expr: Expression) -> Type | None - added:
method TypeChecker.check_metaclass_compatibility(typ: TypeInfo) -> None - added:
method TypeChecker.default_exception_type(is_star: bool) -> Type - added:
method TypeChecker.determine_type_of_member(sym: SymbolTableNode) -> Type | None - added:
method TypeChecker.get_variable_type_context(inferred: Var) -> Type | None - added:
method TypeChecker.has_valid_attribute(typ: Type, name: str) -> bool - added:
method TypeChecker.hasattr_type_maps(expr: Expression, source_type: Type, name: str) -> tuple[TypeMap, TypeMap] - added:
method TypeChecker.partition_union_by_attr(source_type: UnionType, name: str) -> tuple[list[Type], list[Type]] - added:
method TypeChecker.wrap_exception_group(types: Sequence[Type]) -> Type
- changed:
function allow_fast_container_literal(t: ProperType) -> bool → function allow_fast_container_literal(t: Type) -> bool - changed:
method ExpressionChecker.alias_type_in_runtime_context(alias: TypeAlias, no_args: bool, ctx: Context, *, alias_definition: bool=…) -> Type → method ExpressionChecker.alias_type_in_runtime_context(alias: TypeAlias, *, ctx: Context, alias_definition: bool=…) -> Type - added:
method ExpressionChecker.module_type(node: MypyFile) -> Instance
- removed:
function instance_alias_type(alias: TypeAlias, named_type: Callable[[str], Instance]) -> Type - changed:
constructor MemberContext(is_lvalue: bool, is_super: bool, is_operator: bool, original_type: Type, context: Context, msg: MessageBuilder, chk: mypy.checker.TypeChecker, self_type: Type | None, module_symbol_table: SymbolTable | None=…) -> None → constructor MemberContext(is_lvalue: bool, is_super: bool, is_operator: bool, original_type: Type, context: Context, msg: MessageBuilder, chk: mypy.checker.TypeChecker, self_type: Type | None, module_symbol_table: SymbolTable | None=…, no_deferral: bool=…) -> None - changed:
function analyze_member_access(name: str, typ: Type, context: Context, is_lvalue: bool, is_super: bool, is_operator: bool, msg: MessageBuilder, *, original_type: Type, chk: mypy.checker.TypeChecker, override_info: TypeInfo | None=…, in_literal_context: bool=…, self_type: Type | None=…, module_symbol_table: SymbolTable | None=…) -> Type → function analyze_member_access(name: str, typ: Type, context: Context, is_lvalue: bool, is_super: bool, is_operator: bool, msg: MessageBuilder, *, original_type: Type, chk: mypy.checker.TypeChecker, override_info: TypeInfo | None=…, in_literal_context: bool=…, self_type: Type | None=…, module_symbol_table: SymbolTable | None=…, no_deferral: bool=…) -> Type - added:
function validate_super_call(node: FuncBase, mx: MemberContext) -> None
- changed:
constructor Constraint(type_var: TypeVarId, op: int, target: Type) -> None → constructor Constraint(type_var: TypeVarLikeType, op: int, target: Type) -> None - changed:
method ConstraintBuilderVisitor.infer_constraints_from_protocol_members(instance: Instance, template: Instance, subtype: Type, protocol: Instance) -> list[Constraint] → method ConstraintBuilderVisitor.infer_constraints_from_protocol_members(instance: Instance, template: Instance, subtype: Type, protocol: Instance, class_obj: bool=…) -> list[Constraint] - added:
function filter_satisfiable(option: list[Constraint] | None) -> list[Constraint] | None
- changed:
variable ASSIGNMENT: Final → variable ASSIGNMENT: Final[ErrorCode] - changed:
variable VALID_TYPE: Final → variable VALID_TYPE: Final[ErrorCode] - added:
variable ANNOTATION_UNCHECKED - added:
variable EMPTY_BODY: Final[ErrorCode] - added:
variable PARTIALLY_DEFINED: Final[ErrorCode] - added:
variable SAFE_SUPER: Final - added:
variable TRUTHY_FUNCTION: Final[ErrorCode] - added:
variable TYPE_ABSTRACT: Final
- changed:
constructor Errors(show_error_context: bool=…, show_column_numbers: bool=…, show_error_codes: bool=…, pretty: bool=…, show_error_end: bool=…, read_source: Callable[[str], list[str] | None] | None=…, show_absolute_path: bool=…, many_errors_threshold: int=…, options: Options | None=…) -> None → constructor Errors(show_error_context: bool=…, show_column_numbers: bool=…, hide_error_codes: bool=…, pretty: bool=…, show_error_end: bool=…, read_source: Callable[[str], list[str] | None] | None=…, show_absolute_path: bool=…, many_errors_threshold: int=…, options: Options | None=…) -> None - added:
variable SHOW_NOTE_CODES: Final
- changed:
function expand_type(typ: Type, env: Mapping[TypeVarId, Type]) -> Type → function expand_type(typ: ProperType, env: Mapping[TypeVarId, Type]) -> ProperType | (typ: Type, env: Mapping[TypeVarId, Type]) -> Type - changed:
function expand_type_by_instance(typ: Type, instance: Instance) -> Type → function expand_type_by_instance(typ: ProperType, instance: Instance) -> ProperType | (typ: Type, instance: Instance) -> Type - added:
function expand_unpack_with_variables(t: UnpackType, variables: Mapping[TypeVarId, Type]) -> list[Type] | Instance | AnyType | None
- added:
method ASTConverter.visit_TryStar(n: TryStar) -> TryStmt - added:
variable TryStar
- removed:
method TypeJoinVisitor.join(s: Type, t: Type) -> ProperType - changed:
function join_type_list(types: list[Type]) -> ProperType → function join_type_list(types: list[Type]) -> Type - changed:
function join_types(s: Type, t: Type, instance_joiner: InstanceJoiner | None=…) -> ProperType → function join_types(s: ProperType, t: ProperType, instance_joiner: InstanceJoiner | None=…) -> ProperType | (s: Type, t: Type, instance_joiner: InstanceJoiner | None=…) -> Type - changed:
function normalize_callables(s: ProperType, t: ProperType) -> Tuple[ProperType, ProperType] → function normalize_callables(s: ProperType, t: ProperType) -> tuple[ProperType, ProperType] - changed:
function trivial_join(s: Type, t: Type) -> ProperType → function trivial_join(s: Type, t: Type) -> Type - changed:
function unpack_callback_protocol(t: Instance) -> Type | None → function unpack_callback_protocol(t: Instance) -> ProperType | None
- added:
method ErrorMessage.with_additional_msg(info: str) -> ErrorMessage - added:
variable EMPTY_BODY_ABSTRACT: Final - added:
variable INVALID_EXCEPTION_GROUP: Final
- changed:
function format_type(typ: Type, verbosity: int=…) -> str → function format_type(typ: Type, verbosity: int=…, module_names: bool=…) -> str - changed:
function format_type_bare(typ: Type, verbosity: int=…) -> str → function format_type_bare(typ: Type, verbosity: int=…, module_names: bool=…) -> str - changed:
function format_type_inner(typ: Type, verbosity: int, fullnames: set[str] | None) -> str → function format_type_inner(typ: Type, verbosity: int, fullnames: set[str] | None, module_names: bool=…) -> str - changed:
function get_bad_protocol_flags(left: Instance, right: Instance) -> list[tuple[str, set[int], set[int]]] → function get_bad_protocol_flags(left: Instance, right: Instance, class_obj: bool=…) -> list[tuple[str, set[int], set[int]]] - changed:
function get_conflict_protocol_types(left: Instance, right: Instance) -> list[tuple[str, Type, Type]] → function get_conflict_protocol_types(left: Instance, right: Instance, class_obj: bool=…) -> list[tuple[str, Type, Type]] - changed:
function pretty_callable(tp: CallableType) -> str → function pretty_callable(tp: CallableType, skip_self: bool=…) -> str - changed:
method MessageBuilder.filter_errors(*, filter_errors: bool=…, save_filtered_errors: bool=…) -> ErrorWatcher → method MessageBuilder.filter_errors(*, filter_errors: bool | Callable[[str, ErrorInfo], bool]=…, save_filtered_errors: bool=…) -> ErrorWatcher - changed:
method MessageBuilder.generate_incompatible_tuple_error(lhs_types: list[Type], rhs_types: list[Type], context: Context, msg: str=…, code: ErrorCode | None=…) -> None → method MessageBuilder.generate_incompatible_tuple_error(lhs_types: list[Type], rhs_types: list[Type], context: Context, msg: message_registry.ErrorMessage) -> None - changed:
method MessageBuilder.incompatible_conditional_function_def(defn: FuncDef) -> None → method MessageBuilder.incompatible_conditional_function_def(defn: FuncDef, old_type: FunctionLike, new_type: FunctionLike) -> None - changed:
method MessageBuilder.pretty_overload(tp: Overloaded, context: Context, offset: int, *, add_class_or_static_decorator: bool=…, allow_dups: bool=…, code: ErrorCode | None=…) -> None → method MessageBuilder.pretty_overload(tp: Overloaded, context: Context, offset: int, *, add_class_or_static_decorator: bool=…, allow_dups: bool=…, code: ErrorCode | None=…, skip_self: bool=…) -> None - changed:
method MessageBuilder.report_protocol_problems(subtype: Instance | TupleType | TypedDictType, supertype: Instance, context: Context, *, code: ErrorCode | None) -> None → method MessageBuilder.report_protocol_problems(subtype: Instance | TupleType | TypedDictType | TypeType | CallableType, supertype: Instance, context: Context, *, code: ErrorCode | None) -> None - changed:
method MessageBuilder.try_report_long_tuple_assignment_error(subtype: ProperType, supertype: ProperType, context: Context, msg: str=…, subtype_label: str | None=…, supertype_label: str | None=…, code: ErrorCode | None=…) -> bool → method MessageBuilder.try_report_long_tuple_assignment_error(subtype: ProperType, supertype: ProperType, context: Context, msg: message_registry.ErrorMessage, subtype_label: str | None=…, supertype_label: str | None=…) -> bool - added:
function wrong_type_arg_count(n: int, act: str, name: str) -> str - added:
method MessageBuilder.annotation_in_unchecked_function(context: Context) -> None - added:
method MessageBuilder.unsafe_super(method: str, cls: str, ctx: Context) -> None - added:
method MessageBuilder.variable_may_be_undefined(name: str, context: Context) -> None
- changed:
constructor PromoteExpr(type: mypy.types.Type) -> None → constructor PromoteExpr(type: mypy.types.ProperType) -> None - changed:
field MypyFile.alias_deps: DefaultDict[str, set[str]] → field MypyFile.alias_deps: defaultdict[str, set[str]] - changed:
field PromoteExpr.type: mypy.types.Type → field PromoteExpr.type: mypy.types.ProperType - added:
field TryStmt.is_star: bool
- added:
variable INCOMPLETE_FEATURES: Final - added:
variable TYPE_VAR_TUPLE: Final - added:
variable UNPACK: Final
- added:
class BranchState - added:
class BranchStatement - added:
class DefinedVariableTracker - added:
class PartiallyDefinedVariableVisitor(ExtendedTraverserVisitor) - added:
constructor BranchState(must_be_defined: set[str] | None=…, may_be_defined: set[str] | None=…, skipped: bool=…) -> None - added:
constructor BranchStatement(initial_state: BranchState) -> None - added:
constructor DefinedVariableTracker() -> None - added:
constructor PartiallyDefinedVariableVisitor(msg: MessageBuilder, type_map: dict[Expression, Type]) -> None - added:
method BranchStatement.done() -> BranchState - added:
method BranchStatement.is_possibly_undefined(name: str) -> bool - added:
method BranchStatement.next_branch() -> None - added:
method BranchStatement.record_definition(name: str) -> None - added:
method BranchStatement.record_nested_branch(state: BranchState) -> None - added:
method BranchStatement.skip_branch() -> None - added:
method DefinedVariableTracker.end_branch_statement() -> None - added:
method DefinedVariableTracker.enter_scope() -> None - added:
method DefinedVariableTracker.exit_scope() -> None - added:
method DefinedVariableTracker.is_possibly_undefined(name: str) -> bool - added:
method DefinedVariableTracker.next_branch() -> None - added:
method DefinedVariableTracker.record_declaration(name: str) -> None - added:
method DefinedVariableTracker.skip_branch() -> None - added:
method DefinedVariableTracker.start_branch_statement() -> None - added:
method PartiallyDefinedVariableVisitor.process_lvalue(lvalue: Lvalue | None) -> None - added:
method PartiallyDefinedVariableVisitor.visit_as_pattern(o: AsPattern) -> None - added:
method PartiallyDefinedVariableVisitor.visit_assert_stmt(o: AssertStmt) -> None - added:
method PartiallyDefinedVariableVisitor.visit_assignment_expr(o: AssignmentExpr) -> None - added:
method PartiallyDefinedVariableVisitor.visit_assignment_stmt(o: AssignmentStmt) -> None - added:
method PartiallyDefinedVariableVisitor.visit_break_stmt(o: BreakStmt) -> None - added:
method PartiallyDefinedVariableVisitor.visit_continue_stmt(o: ContinueStmt) -> None - added:
method PartiallyDefinedVariableVisitor.visit_dictionary_comprehension(o: DictionaryComprehension) -> None - added:
method PartiallyDefinedVariableVisitor.visit_expression_stmt(o: ExpressionStmt) -> None - added:
method PartiallyDefinedVariableVisitor.visit_for_stmt(o: ForStmt) -> None - added:
method PartiallyDefinedVariableVisitor.visit_func(o: FuncItem) -> None - added:
method PartiallyDefinedVariableVisitor.visit_func_def(o: FuncDef) -> None - added:
method PartiallyDefinedVariableVisitor.visit_generator_expr(o: GeneratorExpr) -> None - added:
method PartiallyDefinedVariableVisitor.visit_if_stmt(o: IfStmt) -> None - added:
method PartiallyDefinedVariableVisitor.visit_match_stmt(o: MatchStmt) -> None - added:
method PartiallyDefinedVariableVisitor.visit_name_expr(o: NameExpr) -> None - added:
method PartiallyDefinedVariableVisitor.visit_raise_stmt(o: RaiseStmt) -> None - added:
method PartiallyDefinedVariableVisitor.visit_return_stmt(o: ReturnStmt) -> None - added:
method PartiallyDefinedVariableVisitor.visit_starred_pattern(o: StarredPattern) -> None - added:
method PartiallyDefinedVariableVisitor.visit_while_stmt(o: WhileStmt) -> None - added:
method PartiallyDefinedVariableVisitor.visit_with_stmt(o: WithStmt) -> None
- added:
method SemanticAnalyzerPluginInterface.analyze_simple_literal_type(rvalue: Expression, is_final: bool) -> Type | None
- removed:
variable MAGIC_ATTR_CLS_NAME: Final - added:
variable MAGIC_ATTR_CLS_NAME_TEMPLATE: Final
- changed:
function add_attribute_to_class(api: SemanticAnalyzerPluginInterface, cls: ClassDef, name: str, typ: Type, final: bool=…, no_serialize: bool=…, override_allow_incompatible: bool=…) -> None → function add_attribute_to_class(api: SemanticAnalyzerPluginInterface, cls: ClassDef, name: str, typ: Type, final: bool=…, no_serialize: bool=…, override_allow_incompatible: bool=…, fullname: str | None=…, is_classvar: bool=…) -> None - changed:
function add_method(ctx: ClassDefContext, name: str, args: list[Argument], return_type: Type, self_type: Type | None=…, tvar_def: TypeVarType | None=…) -> None → function add_method(ctx: ClassDefContext, name: str, args: list[Argument], return_type: Type, self_type: Type | None=…, tvar_def: TypeVarType | None=…, is_classmethod: bool=…, is_staticmethod: bool=…) -> None - changed:
function add_method_to_class(api: SemanticAnalyzerPluginInterface | CheckerPluginInterface, cls: ClassDef, name: str, args: list[Argument], return_type: Type, self_type: Type | None=…, tvar_def: TypeVarType | None=…) -> None → function add_method_to_class(api: SemanticAnalyzerPluginInterface | CheckerPluginInterface, cls: ClassDef, name: str, args: list[Argument], return_type: Type, self_type: Type | None=…, tvar_def: TypeVarType | None=…, is_classmethod: bool=…, is_staticmethod: bool=…) -> None
- removed:
function contextmanager_callback(ctx: FunctionContext) -> Type
- changed:
function contains_int_or_tuple_of_ints(expr: Expression) -> None | int | tuple[int] | tuple[int, ...] → function contains_int_or_tuple_of_ints(expr: Expression) -> None | int | tuple[int, ...] - added:
method MarkImportsMypyOnlyVisitor.visit_func_def(node: FuncDef) -> None
- removed:
method SemanticAnalyzer.analyze_metaclass(defn: ClassDef) -> None - removed:
method SemanticAnalyzer.update_metaclass(defn: ClassDef) -> None - added:
method SemanticAnalyzer.check_paramspec_definition(defn: FuncDef) -> None - added:
method SemanticAnalyzer.get_declared_metaclass(name: str, metaclass_expr: Expression | None) -> tuple[Instance | None, bool] - added:
method SemanticAnalyzer.incomplete_feature_enabled(feature: str, ctx: Context) -> bool - added:
method SemanticAnalyzer.infer_metaclass_and_bases_from_compat_helpers(defn: ClassDef) -> None - added:
method SemanticAnalyzer.recalculate_metaclass(defn: ClassDef, declared_metaclass: Instance | None) -> None
- added:
method SemanticAnalyzerCoreInterface.incomplete_feature_enabled(feature: str, ctx: Context) -> bool
- added:
method SnapshotTypeVisitor.normalize_callable_variables(typ: CallableType) -> CallableType
- changed:
constructor DependencyVisitor(type_map: dict[Expression, Type], python_version: tuple[int, int], alias_deps: DefaultDict[str, set[str]], options: Options | None=…) -> None → constructor DependencyVisitor(type_map: dict[Expression, Type], python_version: tuple[int, int], alias_deps: defaultdict[str, set[str]], options: Options | None=…) -> None
- added:
function extract_fnam_from_message(message: str) -> str | None - added:
function extract_possible_fnam_from_message(message: str) -> str - added:
function sort_messages_preserving_file_order(messages: list[str], prev_messages: list[str]) -> list[str]
- added:
function get_sig_generators(options: Options) -> List[SignatureGenerator] - added:
variable KNOWN_MAGIC_METHODS_RETURN_TYPES: Final
- changed:
function generate_c_function_stub(module: ModuleType, name: str, obj: object, output: list[str], imports: list[str], self_var: str | None=…, sigs: dict[str, str] | None=…, class_name: str | None=…, class_sigs: dict[str, str] | None=…) -> None → function generate_c_function_stub(module: ModuleType, name: str, obj: object, output: list[str], imports: list[str], sig_generators: Iterable[SignatureGenerator], self_var: str | None=…, class_name: str | None=…) -> None - changed:
function generate_c_type_stub(module: ModuleType, class_name: str, obj: type, output: list[str], imports: list[str], sigs: dict[str, str] | None=…, class_sigs: dict[str, str] | None=…) -> None → function generate_c_type_stub(module: ModuleType, class_name: str, obj: type, output: list[str], imports: list[str], sig_generators: Iterable[SignatureGenerator]) -> None - changed:
function generate_stub_for_c_module(module_name: str, target: str, sigs: dict[str, str] | None=…, class_sigs: dict[str, str] | None=…) -> None → function generate_stub_for_c_module(module_name: str, target: str, sig_generators: Iterable[SignatureGenerator]) -> None - added:
class DocstringSignatureGenerator(SignatureGenerator) - added:
class ExternalSignatureGenerator(SignatureGenerator) - added:
class FallbackSignatureGenerator(SignatureGenerator) - added:
class SignatureGenerator - added:
constructor ExternalSignatureGenerator(func_sigs: dict[str, str] | None=…, class_sigs: dict[str, str] | None=…) - added:
method DocstringSignatureGenerator.get_function_sig(func: object, module_name: str, name: str) -> list[FunctionSig] | None - added:
method DocstringSignatureGenerator.get_method_sig(func: object, module_name: str, class_name: str, name: str, self_var: str) -> list[FunctionSig] | None - added:
method ExternalSignatureGenerator.get_function_sig(func: object, module_name: str, name: str) -> list[FunctionSig] | None - added:
method ExternalSignatureGenerator.get_method_sig(func: object, module_name: str, class_name: str, name: str, self_var: str) -> list[FunctionSig] | None - added:
method FallbackSignatureGenerator.get_function_sig(func: object, module_name: str, name: str) -> list[FunctionSig] | None - added:
method FallbackSignatureGenerator.get_method_sig(func: object, module_name: str, class_name: str, name: str, self_var: str) -> list[FunctionSig] | None - added:
method SignatureGenerator.get_function_sig(func: object, module_name: str, name: str) -> list[FunctionSig] | None - added:
method SignatureGenerator.get_method_sig(func: object, module_name: str, class_name: str, name: str, self_var: str) -> list[FunctionSig] | None
- added:
function approved_stub_package_exists(prefix: str) -> bool - added:
function stub_package_name(prefix: str) -> str - added:
variable non_bundled_packages
- changed:
function covers_at_runtime(item: Type, supertype: Type, ignore_promotions: bool) -> bool → function covers_at_runtime(item: Type, supertype: Type) -> bool - changed:
function find_member(name: str, itype: Instance, subtype: Type, is_operator: bool=…) -> Type | None → function find_member(name: str, itype: Instance, subtype: Type, is_operator: bool=…, class_obj: bool=…) -> Type | None - changed:
function find_node_type(node: Var | FuncBase, itype: Instance, subtype: Type) -> Type → function find_node_type(node: Var | FuncBase, itype: Instance, subtype: Type, class_obj: bool=…) -> Type - changed:
function get_member_flags(name: str, info: TypeInfo) -> set[int] → function get_member_flags(name: str, itype: Instance, class_obj: bool=…) -> set[int] - changed:
function is_protocol_implementation(left: Instance, right: Instance, proper_subtype: bool=…) -> bool → function is_protocol_implementation(left: Instance, right: Instance, proper_subtype: bool=…, class_obj: bool=…) -> bool - changed:
function restrict_subtype_away(t: Type, s: Type, *, ignore_promotions: bool=…) -> Type → function restrict_subtype_away(t: Type, s: Type) -> Type - added:
variable IS_VAR: Final
- added:
method TransformVisitor.pattern(pattern: Pattern) -> Pattern - added:
method TransformVisitor.visit_as_pattern(p: AsPattern) -> AsPattern - added:
method TransformVisitor.visit_class_pattern(p: ClassPattern) -> ClassPattern - added:
method TransformVisitor.visit_mapping_pattern(p: MappingPattern) -> MappingPattern - added:
method TransformVisitor.visit_match_stmt(o: MatchStmt) -> MatchStmt - added:
method TransformVisitor.visit_or_pattern(p: OrPattern) -> OrPattern - added:
method TransformVisitor.visit_sequence_pattern(p: SequencePattern) -> SequencePattern - added:
method TransformVisitor.visit_singleton_pattern(p: SingletonPattern) -> SingletonPattern - added:
method TransformVisitor.visit_starred_pattern(p: StarredPattern) -> StarredPattern - added:
method TransformVisitor.visit_value_pattern(p: ValuePattern) -> ValuePattern
- changed:
function expand_type_alias(node: TypeAlias, args: list[Type], fail: MsgCallback, no_args: bool, ctx: Context, *, unexpanded_type: Type | None=…, disallow_any: bool=…) -> Type → function expand_type_alias(node: TypeAlias, args: list[Type], fail: MsgCallback, no_args: bool, ctx: Context, *, unexpanded_type: Type | None=…, disallow_any: bool=…, use_standard_error: bool=…) -> Type - added:
method TypeAnalyser.check_unpacks_in_list(items: list[Type]) -> list[Type]
- changed:
function try_getting_literals_from_type(typ: Type, target_literal_type: TypingType[T], target_fullname: str) -> list[T] | None → function try_getting_literals_from_type(typ: Type, target_literal_type: type[T], target_fullname: str) -> list[T] | None - added:
function get_self_type(func: CallableType, default_self: Instance | TupleType) -> Type | None - added:
function try_getting_instance_fallback(typ: Type) -> Instance | None
- changed:
constructor Instance(typ: mypy.nodes.TypeInfo, args: Sequence[Type], line: int=…, column: int=…, *, last_known_value: LiteralType | None=…) -> None → constructor Instance(typ: mypy.nodes.TypeInfo, args: Sequence[Type], line: int=…, column: int=…, *, last_known_value: LiteralType | None=…, extra_attrs: ExtraAttrs | None=…) -> None - changed:
function is_named_instance(t: Type, fullnames: str | tuple[str, ...]) -> bool → function is_named_instance(t: Type, fullnames: str | tuple[str, ...]) -> TypeGuard[Instance] - added:
class ExtraAttrs - added:
constructor ExtraAttrs(attrs: dict[str, Type], immutable: set[str] | None=…, mod_name: str | None=…) -> None - added:
function is_self_type_like(typ: Type, *, is_classmethod: bool) -> bool - added:
method ExtraAttrs.copy() -> ExtraAttrs - added:
method Instance.copy_with_extra_attr(name: str, typ: Type) -> Instance - added:
method TypeVarTupleType.copy_modified(id: Bogus[TypeVarId | int]=…) -> TypeVarTupleType - added:
method TypeVarType.copy_modified(values: Bogus[list[Type]]=…, upper_bound: Bogus[Type]=…, id: Bogus[TypeVarId | int]=…) -> TypeVarType
- removed:
constructor TaskGroup() -> None
- changed:
class Task(Future[_T], Generic[_T]) → class Task(Future[_T_co], Generic[_T_co]) - changed:
constructor Task(coro: Generator[_TaskYieldType, None, _T] | Awaitable[_T], *, loop: AbstractEventLoop=…) -> None → constructor Task(coro: Generator[_TaskYieldType, None, _T_co] | Awaitable[_T_co], *, loop: AbstractEventLoop=…) -> None - changed:
method Task.get_coro() -> Generator[_TaskYieldType, None, _T] | Awaitable[_T] → method Task.get_coro() -> Generator[_TaskYieldType, None, _T_co] | Awaitable[_T_co]
- changed:
constructor BaseTransport(extra: Mapping[Any, Any] | None=…) -> None → constructor BaseTransport(extra: Mapping[str, Any] | None=…) -> None - changed:
method BaseTransport.get_extra_info(name: Any, default: Any=…) -> Any → method BaseTransport.get_extra_info(name: str, default: Any=…) -> Any - changed:
method DatagramTransport.sendto(data: Any, addr: _Address | None=…) -> None → method DatagramTransport.sendto(data: bytes, addr: _Address | None=…) -> None - changed:
method SubprocessTransport.send_signal(signal: int) -> int → method SubprocessTransport.send_signal(signal: int) -> None - changed:
method WriteTransport.write(data: Any) -> None → method WriteTransport.write(data: bytes) -> None - changed:
method WriteTransport.writelines(list_of_data: list[Any]) -> None → method WriteTransport.writelines(list_of_data: Iterable[bytes]) -> None
- changed:
class ArithmeticError(_StandardError) → class ArithmeticError(Exception) - changed:
class AssertionError(_StandardError) → class AssertionError(Exception) - changed:
class AttributeError(_StandardError) → class AttributeError(Exception) - changed:
class BufferError(_StandardError) → class BufferError(Exception) - changed:
class EOFError(_StandardError) → class EOFError(Exception) - changed:
class ImportError(_StandardError) → class ImportError(Exception) - changed:
class LookupError(_StandardError) → class LookupError(Exception) - changed:
class MemoryError(_StandardError) → class MemoryError(Exception) - changed:
class NameError(_StandardError) → class NameError(Exception) - changed:
class ReferenceError(_StandardError) → class ReferenceError(Exception) - changed:
class RuntimeError(_StandardError) → class RuntimeError(Exception) - changed:
class SyntaxError(_StandardError) → class SyntaxError(Exception) - changed:
class SystemError(_StandardError) → class SystemError(Exception) - changed:
class TypeError(_StandardError) → class TypeError(Exception) - changed:
class ValueError(_StandardError) → class ValueError(Exception) - changed:
field SystemExit.code: int → field SystemExit.code: sys._ExitCode - changed:
function exit(code: object=…) -> NoReturn → function exit(code: sys._ExitCode=…) -> NoReturn - 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: _PositiveInteger, exp: float, mod: None=…) -> float | (base: _Negati… → function pow(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: _NegativeInteger, exp: float, mod: None=…) -> complex | (bas… - changed:
function quit(code: object=…) -> NoReturn → function quit(code: sys._ExitCode=…) -> NoReturn - changed:
function sum(__iterable: Iterable[bool | _LiteralInteger], start: int=…) -> int | (__iterable: Iterable[bool | _LiteralInteger], __start: int=…) -> int | (__iterable: Iterable[_SupportsSumNoDefaultT]) -> _SupportsSumNoDefaultT | Literal[0] | (__iterable: Iterable[_AddableT1], start: _AddableT2) -> _AddableT1 | _AddableT2 | (__iterable: Iterable[_AddableT1], __start: _AddableT2) -> _AddableT1 | _A… → function sum(__iterable: Iterable[bool], start: int=…) -> int | (__iterable: Iterable[bool], __start: int=…) -> int | (__iterable: Iterable[_SupportsSumNoDefaultT]) -> _SupportsSumNoDefaultT | Literal[0] | (__iterable: Iterable[_AddableT1], start: _AddableT2) -> _AddableT1 | _AddableT2 | (__iterable: Iterable[_AddableT1], __start: _AddableT2) -> _AddableT1 | _AddableT2 - changed:
method str.translate(__table: Mapping[int, int | str | None] | Sequence[int | str | None]) -> str → method str.translate(__table: _TranslateTable) -> str - added:
constructor AttributeError(*args: object, name: str | None=…, obj: object=…) -> None
- removed:
method LocaleTextCalendar.formatmonthname(theyear: int, themonth: int, width: int, withyear: bool=…) -> str - removed:
method LocaleTextCalendar.formatweekday(day: int, width: int) -> str - changed:
field HTMLCalendar.cssclass_month: str → field HTMLCalendar.cssclass_month: ClassVar[str] - changed:
field HTMLCalendar.cssclass_month_head: str → field HTMLCalendar.cssclass_month_head: ClassVar[str] - changed:
field HTMLCalendar.cssclass_noday: str → field HTMLCalendar.cssclass_noday: ClassVar[str] - changed:
field HTMLCalendar.cssclass_year: str → field HTMLCalendar.cssclass_year: ClassVar[str] - changed:
field HTMLCalendar.cssclass_year_head: str → field HTMLCalendar.cssclass_year_head: ClassVar[str] - changed:
field HTMLCalendar.cssclasses: list[str] → field HTMLCalendar.cssclasses: ClassVar[list[str]] - changed:
field HTMLCalendar.cssclasses_weekday_head: list[str] → field HTMLCalendar.cssclasses_weekday_head: ClassVar[list[str]]
- changed:
constructor FieldStorage(fp: IO[Any] | None=…, headers: Mapping[str, str] | None=…, outerboundary: bytes=…, environ: SupportsGetItem[str, str]=…, keep_blank_values: int=…, strict_parsing: int=…, limit: int | None=…, encoding: str=…, errors: str=…, max_num_fields: int | None=…, separator: str=…) -> None → constructor FieldStorage(fp: IO[Any] | None=…, headers: Mapping[str, str] | Message | None=…, outerboundary: bytes=…, environ: SupportsGetItem[str, str]=…, keep_blank_values: int=…, strict_parsing: int=…, limit: int | None=…, encoding: str=…, errors: str=…, max_num_fields: int | None=…, separator: str=…) -> None - changed:
field FieldStorage.headers: Mapping[str, str] → field FieldStorage.headers: Mapping[str, str] | Message
- removed:
constructor CommandCompiler() -> None - removed:
constructor Compile() -> None
- changed:
method OrderedDict.items() -> _OrderedDictItemsView[_KT, _VT] → method OrderedDict.items() -> _odict_items[_KT, _VT] - changed:
method OrderedDict.keys() -> _OrderedDictKeysView[_KT, _VT] → method OrderedDict.keys() -> _odict_keys[_KT, _VT] - changed:
method OrderedDict.values() -> _OrderedDictValuesView[_KT, _VT] → method OrderedDict.values() -> _odict_values[_KT, _VT]
- removed:
constructor AsyncExitStack() -> None - removed:
constructor ExitStack() -> None
- removed:
constructor Sniffer() -> None - removed:
field excel.delimiter: str - removed:
field excel.doublequote: bool - removed:
field excel.lineterminator: str - removed:
field excel.quotechar: str - removed:
field excel.quoting: _QuotingType - removed:
field excel.skipinitialspace: bool - removed:
field excel_tab.delimiter: str - removed:
field unix_dialect.delimiter: str - removed:
field unix_dialect.doublequote: bool - removed:
field unix_dialect.lineterminator: str - removed:
field unix_dialect.quotechar: str - removed:
field unix_dialect.quoting: _QuotingType - removed:
field unix_dialect.skipinitialspace: bool
- removed:
variable RTLD_GLOBAL: int - removed:
variable RTLD_LOCAL: int
- removed:
field datetime.resolution: ClassVar[timedelta] - removed:
method datetime.ctime() -> str - removed:
method datetime.isocalendar() -> tuple[int, int, int] - removed:
static method datetime.fromisoformat(__date_string: str) -> Self
- removed:
constructor ContentManager() -> None
- removed:
constructor BytesHeaderParser(_class: Callable[[], Message]=…, *, policy: Policy=…) -> None - removed:
constructor HeaderParser(_class: Callable[[], Message] | None=…, *, policy: Policy=…) -> None - removed:
method BytesHeaderParser.parse(fp: BinaryIO, headersonly: bool=…) -> Message - removed:
method BytesHeaderParser.parsebytes(text: bytes, headersonly: bool=…) -> Message - removed:
method HeaderParser.parse(fp: TextIO, headersonly: bool=…) -> Message - removed:
method HeaderParser.parsestr(text: str, headersonly: bool=…) -> Message
- removed:
method IncrementalDecoder.getstate() -> tuple[bytes, int] - removed:
method IncrementalDecoder.reset() -> None - removed:
method IncrementalDecoder.setstate(state: tuple[bytes, int]) -> None - removed:
method IncrementalEncoder.reset() -> None - removed:
method StreamReader.reset() -> None - removed:
method StreamWriter.reset() -> None
- removed:
constructor NullWriter() -> None - removed:
method AbstractWriter.new_alignment(align: str | None) -> None - removed:
method AbstractWriter.new_font(font: _FontType) -> None - removed:
method AbstractWriter.new_margin(margin: int, level: int) -> None - removed:
method AbstractWriter.new_spacing(spacing: str | None) -> None - removed:
method AbstractWriter.new_styles(styles: tuple[Any, ...]) -> None - removed:
method AbstractWriter.send_flowing_data(data: str) -> None - removed:
method AbstractWriter.send_hor_rule(*args: Any, **kw: Any) -> None - removed:
method AbstractWriter.send_label_data(data: str) -> None - removed:
method AbstractWriter.send_line_break() -> None - removed:
method AbstractWriter.send_literal_data(data: str) -> None - removed:
method AbstractWriter.send_paragraph(blankline: int) -> None - removed:
method DumbWriter.send_flowing_data(data: str) -> None - removed:
method DumbWriter.send_hor_rule(*args: Any, **kw: Any) -> None - removed:
method DumbWriter.send_line_break() -> None - removed:
method DumbWriter.send_literal_data(data: str) -> None - removed:
method DumbWriter.send_paragraph(blankline: int) -> None
- removed:
method GzipFile.readable() -> bool - removed:
method GzipFile.seekable() -> bool - removed:
method GzipFile.writable() -> bool - removed:
property GzipFile.closed -> bool
- removed:
method HTMLParser.getpos() -> tuple[int, int] - removed:
method HTMLParser.reset() -> None - removed:
method HTMLParser.unknown_decl(data: str) -> None
- removed:
method HTTPResponse.fileno() -> int
- removed:
field BaseHTTPRequestHandler.server: socketserver.BaseServer - removed:
field SimpleHTTPRequestHandler.server_version: str - removed:
field ThreadingHTTPServer.daemon_threads: bool - removed:
method BaseHTTPRequestHandler.handle() -> None
- removed:
field IMAP4_SSL.host: str - removed:
field IMAP4_SSL.port: int - removed:
field IMAP4_SSL.sock: _socket - removed:
field IMAP4_stream.host: str - removed:
field IMAP4_stream.port: int - removed:
field IMAP4_stream.sock: _socket - removed:
method IMAP4_SSL.read(size: int) -> bytes - removed:
method IMAP4_SSL.readline() -> bytes - removed:
method IMAP4_SSL.send(data: bytes) -> None - removed:
method IMAP4_SSL.shutdown() -> None - removed:
method IMAP4_SSL.socket() -> _socket - removed:
method IMAP4_stream.read(size: int) -> bytes - removed:
method IMAP4_stream.readline() -> bytes - removed:
method IMAP4_stream.send(data: bytes) -> None - removed:
method IMAP4_stream.shutdown() -> None - changed:
function Time2Internaldate(date_time: float | time.struct_time | str) -> str → function Time2Internaldate(date_time: float | time.struct_time | time._TimeTuple | datetime | str) -> str
- removed:
method ExecutionLoader.get_code(fullname: str) -> types.CodeType | None - removed:
method InspectLoader.load_module(fullname: str) -> types.ModuleType - changed:
method ResourceReader.open_resource(resource: StrOrBytesPath) -> IO[bytes] → method ResourceReader.open_resource(resource: str) -> IO[bytes] - changed:
method ResourceReader.resource_path(resource: StrOrBytesPath) -> str → method ResourceReader.resource_path(resource: str) -> str - changed:
method Traversable.joinpath(child: StrPath) -> Traversable → method Traversable.joinpath(child: str) -> Traversable - changed:
method TraversableResources.is_resource(path: StrPath) -> bool → method TraversableResources.is_resource(path: str) -> bool - changed:
method TraversableResources.open_resource(resource: StrPath) -> BufferedReader → method TraversableResources.open_resource(resource: str) -> BufferedReader
- removed:
method ExtensionFileLoader.is_package(fullname: str) -> bool
- removed:
method LazyLoader.create_module(spec: importlib.machinery.ModuleSpec) -> types.ModuleType | None
- changed:
function formatargvalues(args: list[str], varargs: str | None, varkw: str | None, locals: dict[str, Any] | None, formatarg: Callable[[str], str] | None=…, formatvarargs: Callable[[str], str] | None=…, formatvarkw: Callable[[str], str] | None=…, formatvalue: Callable[[Any], str] | None=…) -> str → function formatargvalues(args: list[str], varargs: str | None, varkw: str | None, locals: Mapping[str, Any] | None, formatarg: Callable[[str], str] | None=…, formatvarargs: Callable[[str], str] | None=…, formatvarkw: Callable[[str], str] | None=…, formatvalue: Callable[[Any], str] | None=…) -> str - changed:
function walktree(classes: list[type], children: dict[type[Any], list[type]], parent: type[Any] | None) -> list[Any] → function walktree(classes: list[type], children: Mapping[type[Any], list[type]], parent: type[Any] | None) -> list[Any]
- removed:
constructor BufferedRandom(raw: RawIOBase, buffer_size: int=…) -> None - removed:
method BufferedRandom.read1(__size: int=…) -> bytes - removed:
method BufferedReader.read1(__size: int=…) -> bytes - removed:
method TextIOBase.tell() -> int
- changed:
function ip_network(address: _RawIPAddress | _RawNetworkPart, strict: bool=…) -> IPv4Network | IPv6Network → function ip_network(address: _RawIPAddress | _RawNetworkPart | tuple[_RawIPAddress] | tuple[_RawIPAddress, int], strict: bool=…) -> IPv4Network | IPv6Network
- removed:
constructor Grammar() -> None
- removed:
constructor NFAState() -> None
- removed:
method Handler.filter(record: LogRecord) -> bool - removed:
method Logger.filter(record: LogRecord) -> bool
- removed:
method LZMAFile.close() -> None - removed:
method LZMAFile.fileno() -> int - removed:
method LZMAFile.readable() -> bool - removed:
method LZMAFile.seekable() -> bool - removed:
method LZMAFile.tell() -> int - removed:
method LZMAFile.writable() -> bool - removed:
property LZMAFile.closed -> bool
- removed:
constructor Popen(process_obj: BaseProcess) -> None - removed:
field Popen.sentinel: int - removed:
method Popen.duplicate_for_child(fd: int) -> int - removed:
method Popen.poll(flag: int=…) -> int | None
- removed:
constructor Popen(process_obj: BaseProcess) -> None - removed:
method Popen.duplicate_for_child(fd: int) -> int
- removed:
method JoinableQueue.join() -> None - removed:
method JoinableQueue.task_done() -> None - removed:
method Queue.empty() -> bool - removed:
method Queue.full() -> bool - removed:
method Queue.qsize() -> int
- changed:
function dump(obj, file, protocol: Any | None=…) -> None → function dump(obj, file, protocol: Incomplete | None=…) -> None - changed:
static method ForkingPickler.dumps(obj, protocol: Any | None=…) → static method ForkingPickler.dumps(obj, protocol: Incomplete | None=…)
- removed:
constructor ForkAwareLocal() -> None - removed:
constructor ForkAwareThreadLock() -> None
- removed:
field OptionError.msg: str
- changed:
function preadv(__fd: int, __buffers: Iterable[bytes], __offset: int, __flags: int=…) -> int → function preadv(__fd: int, __buffers: SupportsLenAndGetItem[WriteableBuffer], __offset: int, __flags: int=…) -> int - changed:
function pwritev(__fd: int, __buffers: Iterable[bytes], __offset: int, __flags: int=…) -> int → function pwritev(__fd: int, __buffers: SupportsLenAndGetItem[ReadableBuffer], __offset: int, __flags: int=…) -> int - changed:
function readv(__fd: int, __buffers: Sequence[bytearray]) -> int → function readv(__fd: int, __buffers: SupportsLenAndGetItem[WriteableBuffer]) -> int - changed:
function writev(__fd: int, __buffers: Sequence[bytes]) -> int → function writev(__fd: int, __buffers: SupportsLenAndGetItem[ReadableBuffer]) -> int
- removed:
constructor Template() -> None
- removed:
method Random.getrandbits(__k: int) -> int - removed:
method Random.random() -> float
- removed:
constructor Repr() -> None
- removed:
constructor poll() -> None
- removed:
field SMTPSenderRefused.smtp_code: int - removed:
field SMTP_SSL.default_port: int
- removed:
field TCPServer.request_queue_size: int - removed:
field UDPServer.allow_reuse_port: bool - changed:
class UDPServer(BaseServer) → class UDPServer(TCPServer)
- changed:
method Connection.create_function(name: str, num_params: int, func: Callable[..., _SqliteData]) -> None → method Connection.create_function(name: str, num_params: int, func: Callable[..., _SqliteData] | None) -> None
- removed:
constructor SSLContext(protocol: int=…) -> None
- changed:
field Template.braceidpattern: str | None → field Template.braceidpattern: ClassVar[str | None] - changed:
field Template.delimiter: str → field Template.delimiter: ClassVar[str] - changed:
field Template.flags: RegexFlag → field Template.flags: ClassVar[RegexFlag] - changed:
field Template.idpattern: str → field Template.idpattern: ClassVar[str] - changed:
field Template.pattern: Pattern[str] → field Template.pattern: ClassVar[Pattern[str]]
- removed:
field Struct.format: str - removed:
field Struct.size: int - added:
property Struct.format -> str - added:
property Struct.size -> int
- changed:
field TimeoutExpired.stderr: Any → field TimeoutExpired.stderr: bytes | None - changed:
field TimeoutExpired.stdout: Any → field TimeoutExpired.stdout: bytes | None
- changed:
function exit(__status: object=…) -> NoReturn → function exit(__status: _ExitCode=…) -> NoReturn - added:
function get_int_max_str_digits() -> int - added:
function set_int_max_str_digits(maxdigits: int) -> None
- changed:
function get_config_var(name: str) -> str | None → function get_config_var(name: str) -> Any
- changed:
field TarFile.OPEN_METH: Mapping[str, str] → field TarFile.OPEN_METH: ClassVar[Mapping[str, str]]
- removed:
constructor Event() -> None - removed:
constructor Lock() -> None
- changed:
function askcolor(color: str | bytes | None=…, **options) -> tuple[None, None] | tuple[tuple[float, float, float], str] → function askcolor(color: str | bytes | None=…, *, initialcolor: _Color=…, parent: Misc=…, title: str=…) -> tuple[None, None] | tuple[tuple[float, float, float], str]
- changed:
constructor Treeview(master: tkinter.Misc | None=…, *, class_: str=…, columns: str | list[str] | tuple[str, ...]=…, cursor: tkinter._Cursor=…, displaycolumns: str | list[str] | tuple[str, ...] | list[int] | tuple[int, ...] | Literal['#all']=…, height: int=…, name: str=…, padding: _Padding=…, selectmode: Literal['extended', 'browse', 'none']=…, show: Literal['tree', 'headings', 'tree headings', ''… → constructor Treeview(master: tkinter.Misc | None=…, *, class_: str=…, columns: str | list[str] | tuple[str, ...]=…, cursor: tkinter._Cursor=…, displaycolumns: str | list[str] | tuple[str, ...] | list[int] | tuple[int, ...]=…, height: int=…, name: str=…, padding: _Padding=…, selectmode: Literal['extended', 'browse', 'none']=…, show: Literal['tree', 'headings', 'tree headings', ''] | list[str] | tu… - changed:
method Treeview.configure(cnf: dict[str, Any] | None=…, *, columns: str | list[str] | tuple[str, ...]=…, cursor: tkinter._Cursor=…, displaycolumns: str | list[str] | tuple[str, ...] | list[int] | tuple[int, ...] | Literal['#all']=…, height: int=…, padding: _Padding=…, selectmode: Literal['extended', 'browse', 'none']=…, show: Literal['tree', 'headings', 'tree headings', ''] | list[str] | tuple[st… → method Treeview.configure(cnf: dict[str, Any] | None=…, *, columns: str | list[str] | tuple[str, ...]=…, cursor: tkinter._Cursor=…, displaycolumns: str | list[str] | tuple[str, ...] | list[int] | tuple[int, ...]=…, height: int=…, padding: _Padding=…, selectmode: Literal['extended', 'browse', 'none']=…, show: Literal['tree', 'headings', 'tree headings', ''] | list[str] | tuple[str, ...]=…, style:…
- changed:
function clear_frames(tb: TracebackType) -> None → function clear_frames(tb: TracebackType | None) -> None
- removed:
method GeneratorType.close() -> None - removed:
property AsyncGeneratorType.ag_code -> CodeType - removed:
property AsyncGeneratorType.ag_frame -> FrameType - removed:
property AsyncGeneratorType.ag_running -> bool - removed:
property CoroutineType.cr_await -> Any | None - removed:
property CoroutineType.cr_code -> CodeType - removed:
property CoroutineType.cr_frame -> FrameType - removed:
property CoroutineType.cr_running -> bool - removed:
property GeneratorType.gi_code -> CodeType - removed:
property GeneratorType.gi_frame -> FrameType - removed:
property GeneratorType.gi_running -> bool
- removed:
export ParamSpec - removed:
export TypeVarTuple - changed:
constructor ParamSpec(name: str, *, bound: None | type[Any] | str=…, contravariant: bool=…, covariant: bool=…) -> None → constructor ParamSpec(name: str, *, bound: None | type[Any] | str=…, contravariant: bool=…, covariant: bool=…, default: type[Any] | str | None=…) -> None - changed:
constructor TypeVarTuple(name: str) -> None → constructor TypeVarTuple(name: str, *, default: Any | None=…) -> None - changed:
function assert_never(__arg: NoReturn) -> NoReturn → function assert_never(__arg: Never) -> Never - added:
class TypeVar - added:
constructor TypeVar(name: str, *constraints: Any, bound: Any | None=…, covariant: bool=…, contravariant: bool=…, default: Any | None=…, infer_variance: bool=…) -> None - added:
export Any - added:
function override(__arg: _F) -> _F
- changed:
constructor FunctionTestCase(testFunc: Callable[[], object], setUp: Callable[[], object] | None=…, tearDown: Callable[[], object] | None=…, description: str | None=…) -> None → constructor FunctionTestCase(testFunc: Callable[[], Any], setUp: Callable[[], Any] | None=…, tearDown: Callable[[], Any] | None=…, description: str | None=…) -> None - changed:
function addModuleCleanup(__function: Callable[_P, object], *args: _P.args, **kwargs: _P.kwargs) -> None → function addModuleCleanup(__function: Callable[_P, Any], *args: _P.args, **kwargs: _P.kwargs) -> None - changed:
method TestCase.addCleanup(function: Callable[_P, object], *args: _P.args, **kwargs: _P.kwargs) -> None → method TestCase.addCleanup(function: Callable[_P, Any], *args: _P.args, **kwargs: _P.kwargs) -> None - changed:
method TestCase.assertRaises(expected_exception: type[BaseException] | tuple[type[BaseException], ...], callable: Callable[..., Any], *args: Any, **kwargs: Any) -> None | (expected_exception: type[_E] | tuple[type[_E], ...], msg: Any=…) -> _AssertRaisesContext[_E] → method TestCase.assertRaises(expected_exception: type[BaseException] | tuple[type[BaseException], ...], callable: Callable[..., Any], *args: Any, **kwargs: Any) -> None | (expected_exception: type[_E] | tuple[type[_E], ...], *, msg: Any=…) -> _AssertRaisesContext[_E] - changed:
method TestCase.assertRaisesRegex(expected_exception: type[BaseException] | tuple[type[BaseException], ...], expected_regex: str | bytes | Pattern[str] | Pattern[bytes], callable: Callable[..., object], *args: Any, **kwargs: Any) -> None | (expected_exception: type[_E] | tuple[type[_E], ...], expected_regex: str | bytes | Pattern[str] | Pattern[bytes], msg: Any=…) -> _AssertRaisesContext[_E] → method TestCase.assertRaisesRegex(expected_exception: type[BaseException] | tuple[type[BaseException], ...], expected_regex: str | bytes | Pattern[str] | Pattern[bytes], callable: Callable[..., Any], *args: Any, **kwargs: Any) -> None | (expected_exception: type[_E] | tuple[type[_E], ...], expected_regex: str | bytes | Pattern[str] | Pattern[bytes], *, msg: Any=…) -> _AssertRaisesContext[_E] - changed:
method TestCase.assertWarns(expected_warning: type[Warning] | tuple[type[Warning], ...], callable: Callable[_P, object], *args: _P.args, **kwargs: _P.kwargs) -> None | (expected_warning: type[Warning] | tuple[type[Warning], ...], msg: Any=…) -> _AssertWarnsContext → method TestCase.assertWarns(expected_warning: type[Warning] | tuple[type[Warning], ...], callable: Callable[_P, Any], *args: _P.args, **kwargs: _P.kwargs) -> None | (expected_warning: type[Warning] | tuple[type[Warning], ...], *, msg: Any=…) -> _AssertWarnsContext - changed:
method TestCase.assertWarnsRegex(expected_warning: type[Warning] | tuple[type[Warning], ...], expected_regex: str | bytes | Pattern[str] | Pattern[bytes], callable: Callable[_P, object], *args: _P.args, **kwargs: _P.kwargs) -> None | (expected_warning: type[Warning] | tuple[type[Warning], ...], expected_regex: str | bytes | Pattern[str] | Pattern[bytes], msg: Any=…) -> _AssertWarnsContext → method TestCase.assertWarnsRegex(expected_warning: type[Warning] | tuple[type[Warning], ...], expected_regex: str | bytes | Pattern[str] | Pattern[bytes], callable: Callable[_P, Any], *args: _P.args, **kwargs: _P.kwargs) -> None | (expected_warning: type[Warning] | tuple[type[Warning], ...], expected_regex: str | bytes | Pattern[str] | Pattern[bytes], *, msg: Any=…) -> _AssertWarnsContext - changed:
static method TestCase.addClassCleanup(__function: Callable[_P, object], *args: _P.args, **kwargs: _P.kwargs) -> None → static method TestCase.addClassCleanup(__function: Callable[_P, Any], *args: _P.args, **kwargs: _P.kwargs) -> None
- removed:
method MagicMock.mock_add_spec(spec: Any, spec_set: bool=…) -> None - removed:
method NonCallableMagicMock.mock_add_spec(spec: Any, spec_set: bool=…) -> None
- removed:
method TextTestResult.printErrors() -> None
- changed:
function quote(string: str, safe: _Str=…, encoding: str | None=…, errors: str | None=…) -> str | (string: bytes, safe: _Str=…) -> str → function quote(string: str, safe: str | bytes=…, encoding: str | None=…, errors: str | None=…) -> str | (string: bytes, safe: str | bytes=…) -> str - changed:
function quote_from_bytes(bs: bytes, safe: _Str=…) -> str → function quote_from_bytes(bs: bytes, safe: str | bytes=…) -> str - changed:
function quote_plus(string: str, safe: _Str=…, encoding: str | None=…, errors: str | None=…) -> str | (string: bytes, safe: _Str=…) -> str → function quote_plus(string: str, safe: str | bytes=…, encoding: str | None=…, errors: str | None=…) -> str | (string: bytes, safe: str | bytes=…) -> str - changed:
function unquote_to_bytes(string: _Str) -> bytes → function unquote_to_bytes(string: str | bytes) -> bytes - changed:
function urlencode(query: Mapping[Any, Any] | Mapping[Any, Sequence[Any]] | Sequence[tuple[Any, Any]] | Sequence[tuple[Any, Sequence[Any]]], doseq: bool=…, safe: _Str=…, encoding: str=…, errors: str=…, quote_via: Callable[[AnyStr, _Str, str, str], str]=…) -> str → function urlencode(query: Mapping[Any, Any] | Mapping[Any, Sequence[Any]] | Sequence[tuple[Any, Any]] | Sequence[tuple[Any, Sequence[Any]]], doseq: bool=…, safe: str | bytes=…, encoding: str=…, errors: str=…, quote_via: Callable[[AnyStr, str | bytes, str, str], str]=…) -> str
- removed:
method CacheFTPHandler.connect_ftp(user: str, passwd: str, host: str, port: int, dirs: str, timeout: float) -> ftpwrapper
- removed:
method WSGIRequestHandler.handle() -> None
- removed:
constructor Packer() -> None
- changed:
constructor ElementInfo(tagName, model: Any | None=…) -> None → constructor ElementInfo(tagName, model: Incomplete | None=…) -> None - changed:
field ElementInfo.tagName: Any → field ElementInfo.tagName: Incomplete - changed:
field ExpatBuilder.curNode: Any → field ExpatBuilder.curNode: Incomplete - changed:
field FragmentBuilder.context: Any → field FragmentBuilder.context: Incomplete - changed:
field FragmentBuilder.fragment: Any | None → field FragmentBuilder.fragment: Incomplete | None - changed:
field FragmentBuilder.originalDocument: Any → field FragmentBuilder.originalDocument: Incomplete
- removed:
property Attr.schemaType -> Any - changed:
constructor Attr(qName: str, namespaceURI: str | None=…, localName: Any | None=…, prefix: Any | None=…) -> None → constructor Attr(qName: str, namespaceURI: str | None=…, localName: str | None=…, prefix: Incomplete | None=…) -> None - changed:
constructor Element(tagName, namespaceURI: str | None=…, prefix: Any | None=…, localName: Any | None=…) -> None → constructor Element(tagName, namespaceURI: str | None=…, prefix: Incomplete | None=…, localName: Incomplete | None=…) -> None - changed:
constructor TypeInfo(namespace, name) -> None → constructor TypeInfo(namespace: Incomplete | None, name: str) -> None - changed:
field Attr.attributes: Any → field Attr.attributes: Incomplete - changed:
field Attr.childNodes: Any → field Attr.childNodes: Incomplete - changed:
field Attr.nodeName: Any → field Attr.nodeName: Incomplete - changed:
field Attr.nodeType: Any → field Attr.nodeType: int - changed:
field Attr.ownerElement: Any → field Attr.ownerElement: Incomplete - changed:
field Attr.prefix: Any → field Attr.prefix: Incomplete - changed:
field CDATASection.nodeType: Any → field CDATASection.nodeType: int - changed:
field CharacterData.nodeValue: Any → field CharacterData.nodeValue: Incomplete - changed:
field CharacterData.ownerDocument: Any → field CharacterData.ownerDocument: Incomplete - changed:
field CharacterData.previousSibling: Any → field CharacterData.previousSibling: Incomplete - changed:
field Childless.attributes: Any → field Childless.attributes: Incomplete - changed:
field Childless.childNodes: Any → field Childless.childNodes: Incomplete - changed:
field Childless.firstChild: Any → field Childless.firstChild: Incomplete - changed:
field Childless.lastChild: Any → field Childless.lastChild: Incomplete - changed:
field Comment.nodeType: Any → field Comment.nodeType: int - changed:
field Document.actualEncoding: Any → field Document.actualEncoding: Incomplete - changed:
field Document.attributes: Any → field Document.attributes: Incomplete - changed:
field Document.childNodes: Any → field Document.childNodes: Incomplete - changed:
field Document.doctype: Any → field Document.doctype: DocumentType | None - changed:
field Document.documentElement: Any → field Document.documentElement: Incomplete - changed:
field Document.documentURI: Any → field Document.documentURI: Incomplete - changed:
field Document.encoding: Any → field Document.encoding: str | None - changed:
field Document.errorHandler: Any → field Document.errorHandler: Incomplete - changed:
field Document.implementation: Any → field Document.implementation: Incomplete - changed:
field Document.nextSibling: Any → field Document.nextSibling: Incomplete - changed:
field Document.nodeType: Any → field Document.nodeType: int - changed:
field Document.nodeValue: Any → field Document.nodeValue: Incomplete - changed:
field Document.parentNode: Any → field Document.parentNode: Incomplete - changed:
field Document.previousSibling: Any → field Document.previousSibling: Incomplete - changed:
field Document.standalone: Any → field Document.standalone: bool | None - changed:
field Document.version: Any → field Document.version: Incomplete - changed:
field DocumentFragment.attributes: Any → field DocumentFragment.attributes: Incomplete - changed:
field DocumentFragment.childNodes: Any → field DocumentFragment.childNodes: Incomplete - changed:
field DocumentFragment.nodeType: Any → field DocumentFragment.nodeType: int - changed:
field DocumentFragment.nodeValue: Any → field DocumentFragment.nodeValue: Incomplete - changed:
field DocumentFragment.parentNode: Any → field DocumentFragment.parentNode: Incomplete - changed:
field DocumentType.entities: Any → field DocumentType.entities: Incomplete - changed:
field DocumentType.internalSubset: Any → field DocumentType.internalSubset: Incomplete - changed:
field DocumentType.name: Any → field DocumentType.name: Incomplete - changed:
field DocumentType.nodeName: Any → field DocumentType.nodeName: Incomplete - changed:
field DocumentType.nodeType: Any → field DocumentType.nodeType: int - changed:
field DocumentType.nodeValue: Any → field DocumentType.nodeValue: Incomplete - changed:
field DocumentType.notations: Any → field DocumentType.notations: Incomplete - changed:
field Element.childNodes: Any → field Element.childNodes: Incomplete - changed:
field Element.nextSibling: Any → field Element.nextSibling: Incomplete - changed:
field Element.nodeType: Any → field Element.nodeType: int - changed:
field Element.nodeValue: Any → field Element.nodeValue: Incomplete - changed:
field Element.parentNode: Any → field Element.parentNode: Incomplete - changed:
field Element.prefix: Any → field Element.prefix: Incomplete - changed:
field Element.removeAttributeNodeNS: Any → field Element.removeAttributeNodeNS: Incomplete - changed:
field Element.schemaType: Any → field Element.schemaType: Incomplete - changed:
field Element.setAttributeNodeNS: Any → field Element.setAttributeNodeNS: Incomplete - changed:
field ElementInfo.tagName: Any → field ElementInfo.tagName: Incomplete - changed:
field Entity.actualEncoding: Any → field Entity.actualEncoding: Incomplete - changed:
field Entity.attributes: Any → field Entity.attributes: Incomplete - changed:
field Entity.childNodes: Any → field Entity.childNodes: Incomplete - changed:
field Entity.encoding: Any → field Entity.encoding: Incomplete - changed:
field Entity.nodeName: Any → field Entity.nodeName: Incomplete - changed:
field Entity.nodeType: Any → field Entity.nodeType: int - changed:
field Entity.nodeValue: Any → field Entity.nodeValue: Incomplete - changed:
field Entity.notationName: Any → field Entity.notationName: Incomplete - changed:
field Entity.version: Any → field Entity.version: Incomplete - changed:
field Identified.publicId: Any → field Identified.publicId: Incomplete - changed:
field Identified.systemId: Any → field Identified.systemId: Incomplete - changed:
field Node.childNodes: Any → field Node.childNodes: Incomplete - changed:
field Node.nextSibling: Any → field Node.nextSibling: Incomplete - changed:
field Node.ownerDocument: Any → field Node.ownerDocument: Incomplete - changed:
field Node.parentNode: Any → field Node.parentNode: Incomplete - changed:
field Node.prefix: Any → field Node.prefix: Incomplete - changed:
field Node.previousSibling: Any → field Node.previousSibling: Incomplete - changed:
field Notation.nodeName: Any → field Notation.nodeName: Incomplete - changed:
field Notation.nodeType: Any → field Notation.nodeType: int - changed:
field Notation.nodeValue: Any → field Notation.nodeValue: Incomplete - changed:
field ProcessingInstruction.data: Any → field ProcessingInstruction.data: Incomplete - changed:
field ProcessingInstruction.nodeName: Any → field ProcessingInstruction.nodeName: Incomplete - changed:
field ProcessingInstruction.nodeType: Any → field ProcessingInstruction.nodeType: int - changed:
field ProcessingInstruction.nodeValue: Any → field ProcessingInstruction.nodeValue: Incomplete - changed:
field ProcessingInstruction.target: Any → field ProcessingInstruction.target: Incomplete - changed:
field Text.attributes: Any → field Text.attributes: Incomplete - changed:
field Text.data: Any → field Text.data: Incomplete - changed:
field Text.nodeType: Any → field Text.nodeType: int - changed:
field TypeInfo.name: Any → field TypeInfo.name: str - changed:
field TypeInfo.namespace: Any → field TypeInfo.namespace: Incomplete | None - changed:
method CDATASection.writexml(writer, indent: str=…, addindent: str=…, newl: str=…) -> None → method CDATASection.writexml(writer: SupportsWrite[str], indent: str=…, addindent: str=…, newl: str=…) -> None - changed:
method Comment.writexml(writer, indent: str=…, addindent: str=…, newl: str=…) -> None → method Comment.writexml(writer: SupportsWrite[str], indent: str=…, addindent: str=…, newl: str=…) -> None - changed:
method DOMImplementation.createDocument(namespaceURI: str | None, qualifiedName: str | None, doctype) → method DOMImplementation.createDocument(namespaceURI: str | None, qualifiedName: str | None, doctype: DocumentType | None) -> Document - changed:
method DOMImplementation.createDocumentType(qualifiedName: str | None, publicId, systemId) → method DOMImplementation.createDocumentType(qualifiedName: str | None, publicId: str, systemId: str) -> DocumentType - changed:
method DOMImplementation.getInterface(feature) → method DOMImplementation.getInterface(feature: str) -> Self | None - changed:
method DOMImplementation.hasFeature(feature, version) -> bool → method DOMImplementation.hasFeature(feature: str, version: str | None) -> bool - changed:
method Document.createCDATASection(data) → method Document.createCDATASection(data: str) -> CDATASection - changed:
method Document.createComment(data) → method Document.createComment(data: str) -> Comment - changed:
method Document.createDocumentFragment() → method Document.createDocumentFragment() -> DocumentFragment - changed:
method Document.createElement(tagName: str) → method Document.createElement(tagName: str) -> Element - changed:
method Document.createTextNode(data) → method Document.createTextNode(data: str) -> Text - changed:
method Document.isSupported(feature, version) → method Document.isSupported(feature: str, version: str | None) -> bool - changed:
method Document.writexml(writer, indent: str=…, addindent: str=…, newl: str=…, encoding: Any | None=…) -> None → method Document.writexml(writer: SupportsWrite[str], indent: str=…, addindent: str=…, newl: str=…, encoding: Incomplete | None=…) -> None - changed:
method DocumentType.writexml(writer, indent: str=…, addindent: str=…, newl: str=…) -> None → method DocumentType.writexml(writer: SupportsWrite[str], indent: str=…, addindent: str=…, newl: str=…) -> None - changed:
method Element.writexml(writer, indent: str=…, addindent: str=…, newl: str=…) -> None → method Element.writexml(writer: SupportsWrite[str], indent: str=…, addindent: str=…, newl: str=…) -> None - changed:
method NamedNodeMap.get(name, value: Any | None=…) → method NamedNodeMap.get(name: str, value: Incomplete | None=…) - changed:
method NamedNodeMap.getNamedItem(name) → method NamedNodeMap.getNamedItem(name: str) -> Attr | None - changed:
method NamedNodeMap.getNamedItemNS(namespaceURI: str, localName) → method NamedNodeMap.getNamedItemNS(namespaceURI: str, localName: str | None) -> Attr | None - changed:
method NamedNodeMap.removeNamedItem(name) → method NamedNodeMap.removeNamedItem(name: str) -> Attr - changed:
method NamedNodeMap.removeNamedItemNS(namespaceURI: str, localName) → method NamedNodeMap.removeNamedItemNS(namespaceURI: str, localName: str | None) - changed:
method NamedNodeMap.setNamedItem(node) → method NamedNodeMap.setNamedItem(node: Attr) -> Attr - changed:
method NamedNodeMap.setNamedItemNS(node) → method NamedNodeMap.setNamedItemNS(node: Attr) -> Attr - changed:
method Node.toprettyxml(indent: str=…, newl: str=…, encoding: Any | None=…) → method Node.toprettyxml(indent: str=…, newl: str=…, encoding: str | None=…) - changed:
method Node.toxml(encoding: Any | None=…) → method Node.toxml(encoding: str | None=…) - changed:
method ProcessingInstruction.writexml(writer, indent: str=…, addindent: str=…, newl: str=…) -> None → method ProcessingInstruction.writexml(writer: SupportsWrite[str], indent: str=…, addindent: str=…, newl: str=…) -> None - changed:
method Text.writexml(writer, indent: str=…, addindent: str=…, newl: str=…) -> None → method Text.writexml(writer: SupportsWrite[str], indent: str=…, addindent: str=…, newl: str=…) -> None - added:
property Attr.schemaType
- changed:
field DOMEventStream.pulldom: Any → field DOMEventStream.pulldom: Incomplete - changed:
field PullDOM.elementStack: Sequence[Any] → field PullDOM.elementStack: Sequence[Incomplete] - changed:
field PullDOM.firstEvent: Any → field PullDOM.firstEvent: Incomplete - changed:
field PullDOM.lastEvent: Any → field PullDOM.lastEvent: Incomplete - changed:
field PullDOM.pending_events: Sequence[Any] → field PullDOM.pending_events: Sequence[Incomplete]
- removed:
constructor DOMBuilder() -> None - changed:
method DOMBuilder.getFeature(name: str) -> Any → method DOMBuilder.getFeature(name: str) -> Incomplete
- removed:
constructor ContentHandler() -> None - changed:
method ErrorHandler.error(exception) → method ErrorHandler.error(exception: BaseException) -> NoReturn - changed:
method ErrorHandler.fatalError(exception) → method ErrorHandler.fatalError(exception: BaseException) -> NoReturn - changed:
method ErrorHandler.warning(exception) → method ErrorHandler.warning(exception: BaseException) -> None
- removed:
constructor XMLReader() -> None
- removed:
method GzipDecodedResponse.close() -> None
- removed:
constructor XMLRPCDocGenerator() -> None - removed:
field MultiPathXMLRPCServer.allow_none: bool - removed:
field MultiPathXMLRPCServer.encoding: str - removed:
field SimpleXMLRPCServer.allow_reuse_address: bool - removed:
method SimpleXMLRPCRequestHandler.log_request(code: int | str=…, size: int | str=…) -> None
- changed:
static method ZoneInfo.clear_cache(*, only_keys: Iterable[str]=…) -> None → static method ZoneInfo.clear_cache(*, only_keys: Iterable[str] | None=…) -> None
- added:
function fully_split_with_mapped_and_template(mapped: Instance, template: Instance) -> tuple[tuple[Type, ...], tuple[Type, ...], tuple[Type, ...], tuple[Type, ...], tuple[Type, ...], tuple[Type, ...], tuple[Type, ...], tuple[Type, ...], tuple[Type, ...], tuple[Type, ...]] | None - added:
function split_with_mapped_and_template(mapped: Instance, template: Instance) -> tuple[tuple[Type, ...], tuple[Type, ...], tuple[Type, ...], tuple[Type, ...], tuple[Type, ...], tuple[Type, ...]] | None
- changed:
constructor FancyFormatter(f_out: IO[str], f_err: IO[str], show_error_codes: bool) -> None → constructor FancyFormatter(f_out: IO[str], f_err: IO[str], hide_error_codes: bool) -> None - added:
function should_force_color() -> bool - added:
method FancyFormatter.initialize_vt100_colors() -> bool - added:
variable TYPESHED_DIR: Final
- added:
function detect_undefined_bitmap(cl: ClassIR, seen: Set[ClassIR]) -> None
- changed:
method Emitter.emit_undefined_attr_check(rtype: RType, attr_expr: str, compare: str, unlikely: bool=…) -> None → method Emitter.emit_undefined_attr_check(rtype: RType, attr_expr: str, compare: str, obj: str, attr: str, cl: ClassIR, *, unlikely: bool=…) -> None - added:
method Emitter.attr_bitmap_expr(obj: str, cl: ClassIR, index: int) -> str - added:
method Emitter.bitmap_field(index: int) -> str - added:
method Emitter.emit_attr_bitmap_clear(obj: str, rtype: RType, cl: ClassIR, attr: str) -> None - added:
method Emitter.emit_attr_bitmap_set(value: str, obj: str, rtype: RType, cl: ClassIR, attr: str) -> None
- changed:
function generate_arg_check(name: str, typ: RType, emitter: Emitter, error: ErrorHandler | None=…, *, optional: bool=…, raise_exception: bool=…) -> None → function generate_arg_check(name: str, typ: RType, emitter: Emitter, error: ErrorHandler | None=…, *, optional: bool=…, raise_exception: bool=…, bitmap_arg_index: int=…) -> None
- added:
function bitmap_name(index: int) -> str - added:
variable BITMAP_BITS: Final - added:
variable BITMAP_TYPE: Final - added:
variable MIN_SHORT_INT: Final - added:
variable SIZEOF_SIZE_T: Final - added:
variable SIZEOF_SIZE_T_SYSCONFIG: Final
- added:
function num_bitmap_args(args: tuple[RuntimeArg, ...]) -> int - added:
method FuncSignature.bound_sig() -> FuncSignature - added:
method FuncSignature.real_args() -> tuple[RuntimeArg, ...]
- added:
variable bitmap_rprimitive: Final
- added:
method IRBuilder.assign_if_bitmap_unset(target: Register, get_val: Callable[[], Value], index: int, line: int) -> None
- added:
function num_bitmap_args(builder: IRBuilder, args: list[Argument]) -> int
- changed:
function gen_glue(builder: IRBuilder, sig: FuncSignature, target: FuncIR, cls: ClassIR, base: ClassIR, fdef: FuncItem, *, do_py_ops: bool=…) -> FuncIR → function gen_glue(builder: IRBuilder, base_sig: FuncSignature, target: FuncIR, cls: ClassIR, base: ClassIR, fdef: FuncItem, *, do_py_ops: bool=…) -> FuncIR - changed:
function gen_glue_method(builder: IRBuilder, sig: FuncSignature, target: FuncIR, cls: ClassIR, base: ClassIR, line: int, do_pycall: bool) -> FuncIR → function gen_glue_method(builder: IRBuilder, base_sig: FuncSignature, target: FuncIR, cls: ClassIR, base: ClassIR, line: int, do_pycall: bool) -> FuncIR - added:
function check_native_override(builder: IRBuilder, base_sig: FuncSignature, sub_sig: FuncSignature, line: int) -> None
- changed:
method LowLevelIRBuilder.call(decl: FuncDecl, args: Sequence[Value], arg_kinds: list[ArgKind], arg_names: Sequence[str | None], line: int) -> Value → method LowLevelIRBuilder.call(decl: FuncDecl, args: Sequence[Value], arg_kinds: list[ArgKind], arg_names: Sequence[str | None], line: int, *, bitmap_args: list[Register] | None=…) -> Value - changed:
method LowLevelIRBuilder.native_args_to_positional(args: Sequence[Value], arg_kinds: list[ArgKind], arg_names: Sequence[str | None], sig: FuncSignature, line: int) -> list[Value] → method LowLevelIRBuilder.native_args_to_positional(args: Sequence[Value], arg_kinds: list[ArgKind], arg_names: Sequence[str | None], sig: FuncSignature, line: int, *, bitmap_args: list[Register] | None=…) -> list[Value] - added:
method LowLevelIRBuilder.coerce_fixed_width_to_int(src: Value, line: int) -> Value - added:
method LowLevelIRBuilder.coerce_int_to_fixed_width(src: Value, target_type: RType, line: int) -> Value - added:
method LowLevelIRBuilder.coerce_short_int_to_fixed_width(src: Value, target_type: RType, line: int) -> Value - added:
method LowLevelIRBuilder.fixed_width_int_op(type: RType, lhs: Value, rhs: Value, op: int, line: int) -> Value - added:
method LowLevelIRBuilder.inline_fixed_width_divide(type: RType, lhs: Value, rhs: Value, line: int) -> Value - added:
method LowLevelIRBuilder.inline_fixed_width_mod(type: RType, lhs: Value, rhs: Value, line: int) -> Value - added:
method LowLevelIRBuilder.is_different_native_int_signs(type: RType, a: Value, b: Value, line: int) -> Value - added:
variable FIXED_WIDTH_INT_BINARY_OPS: Final
- added:
function translate_abs(builder: IRBuilder, expr: CallExpr, callee: RefExpr) -> Value | None - added:
function translate_i32(builder: IRBuilder, expr: CallExpr, callee: RefExpr) -> Value | None - added:
function translate_i64(builder: IRBuilder, expr: CallExpr, callee: RefExpr) -> Value | None
- added:
function adjust_error_kinds(block: BasicBlock) -> None
- added:
function check_for_uninit_using_bitmap(ops: list[Op], src: Register, bitmap_registers: list[Register], bitmap_backed: list[Register], error_block: BasicBlock, ok_block: BasicBlock, line: int) -> None - added:
function update_register_assignments_to_set_bitmap(blocks: list[BasicBlock], bitmap_registers: list[Register], bitmap_backed: list[Register]) -> None