Skip to content

Upgrading attrs 20 to 21

Unknown20.3.0 → 21.4.0

Fetching 4 releases from GitHub…1 / 4
UnknownUpgrade verdict

DepDelta is still reading the notes for 3 of 4 releases, so breaking changes can't be ruled out yet.

  • 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.
Still reading release notes

DepDelta is still reading the release notes in this range. This updates as they come in.

Python requirement changed in 21.2.0: >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.* → >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*.

Generated by DepDelta from published Python source. Not mixed with prose notes.

  • changed: field Attribute.cmp: bool → field Attribute.cmp: _EqOrderType
  • changed: field Attribute.eq: bool → field Attribute.eq: _EqOrderType
  • changed: field Attribute.order: bool → field Attribute.order: _EqOrderType
  • changed: function Factory(factory: Callable[[], _T]) -> _T | (factory: Union[Callable[[Any], _T], Callable[[], _T]], takes_self: bool=…) -> _T → function Factory(factory: Callable[[], _T]) -> _T | (factory: Callable[[Any], _T], takes_self: Literal[True]) -> _T | (factory: Callable[[], _T], takes_self: Literal[False]) -> _T | (factory: Callable[[], _T]) -> _T | (factory: Union[Callable[[Any], _T], Callable[[], _T]], takes_self: bool=…) -> _T
  • changed: function asdict(inst: Any, recurse: bool=…, filter: Optional[_FilterType[Any]]=…, dict_factory: Type[Mapping[Any, Any]]=…, retain_collection_types: bool=…, value_serializer: Optional[Callable[[type, Attribute, Any], Any]]=…) -> Dict[str, Any] → function asdict(inst: Any, recurse: bool=…, filter: Optional[_FilterType[Any]]=…, dict_factory: Type[Mapping[Any, Any]]=…, retain_collection_types: bool=…, value_serializer: Optional[Callable[[type, Attribute[Any], Any], Any]]=…, tuple_keys: Optional[bool]=…) -> Dict[str, Any]
  • changed: function attrib(default: None=…, validator: None=…, repr: _ReprArgType=…, cmp: Optional[bool]=…, hash: Optional[bool]=…, init: bool=…, metadata: Optional[Mapping[Any, Any]]=…, type: None=…, converter: None=…, factory: None=…, kw_only: bool=…, eq: Optional[bool]=…, order: Optional[bool]=…, on_setattr: Optional[_OnSetAttrArgType]=…) -> Any | (default: None=…, validator: Optional[_ValidatorArgType[_… → function attrib(default: None=…, validator: None=…, repr: _ReprArgType=…, cmp: Optional[_EqOrderType]=…, hash: Optional[bool]=…, init: bool=…, metadata: Optional[Mapping[Any, Any]]=…, type: None=…, converter: None=…, factory: None=…, kw_only: bool=…, eq: Optional[_EqOrderType]=…, order: Optional[_EqOrderType]=…, on_setattr: Optional[_OnSetAttrArgType]=…) -> Any | (default: None=…, validator: Opti…
  • changed: function attrs(maybe_cls: _C, these: Optional[Dict[str, Any]]=…, repr_ns: Optional[str]=…, repr: bool=…, cmp: Optional[bool]=…, hash: Optional[bool]=…, init: bool=…, slots: bool=…, frozen: bool=…, weakref_slot: bool=…, str: bool=…, auto_attribs: bool=…, kw_only: bool=…, cache_hash: bool=…, auto_exc: bool=…, eq: Optional[bool]=…, order: Optional[bool]=…, auto_detect: bool=…, collect_by_mro: bool=…… → function attrs(maybe_cls: _C, these: Optional[Dict[str, Any]]=…, repr_ns: Optional[str]=…, repr: bool=…, cmp: Optional[_EqOrderType]=…, hash: Optional[bool]=…, init: bool=…, slots: bool=…, frozen: bool=…, weakref_slot: bool=…, str: bool=…, auto_attribs: bool=…, kw_only: bool=…, cache_hash: bool=…, auto_exc: bool=…, eq: Optional[_EqOrderType]=…, order: Optional[_EqOrderType]=…, auto_detect: bool=……
  • changed: function make_class(name: str, attrs: Union[List[str], Tuple[str, ...], Dict[str, Any]], bases: Tuple[type, ...]=…, repr_ns: Optional[str]=…, repr: bool=…, cmp: Optional[bool]=…, hash: Optional[bool]=…, init: bool=…, slots: bool=…, frozen: bool=…, weakref_slot: bool=…, str: bool=…, auto_attribs: bool=…, kw_only: bool=…, cache_hash: bool=…, auto_exc: bool=…, eq: Optional[bool]=…, order: Optional[b… → function make_class(name: str, attrs: Union[List[str], Tuple[str, ...], Dict[str, Any]], bases: Tuple[type, ...]=…, repr_ns: Optional[str]=…, repr: bool=…, cmp: Optional[_EqOrderType]=…, hash: Optional[bool]=…, init: bool=…, slots: bool=…, frozen: bool=…, weakref_slot: bool=…, str: bool=…, auto_attribs: bool=…, kw_only: bool=…, cache_hash: bool=…, auto_exc: bool=…, eq: Optional[_EqOrderType]=…, o…
  • changed: function resolve_types(cls: _C, globalns: Optional[Dict[str, Any]]=…, localns: Optional[Dict[str, Any]]=…) -> _C → function resolve_types(cls: _C, globalns: Optional[Dict[str, Any]]=…, localns: Optional[Dict[str, Any]]=…, attribs: Optional[List[Attribute[Any]]]=…) -> _C
  • added: method Attribute.evolve(**changes: Any) -> Attribute[Any]
  • added: function to_bool(val: str) -> bool
  • changed: function frozen(instance: Any, attribute: Attribute, new_value: Any) -> NoReturn → function frozen(instance: Any, attribute: Attribute[Any], new_value: Any) -> NoReturn
  • changed: function matches_re(regex: AnyStr, flags: int=…, func: Optional[Callable[[AnyStr, AnyStr, int], Optional[Match[AnyStr]]]]=…) -> _ValidatorType[AnyStr] → function matches_re(regex: Union[Pattern[AnyStr], AnyStr], flags: int=…, func: Optional[Callable[[AnyStr, AnyStr, int], Optional[Match[AnyStr]]]]=…) -> _ValidatorType[AnyStr]
  • added: function disabled() -> ContextManager[None]
  • added: function ge(val: _T) -> _ValidatorType[_T]
  • added: function get_disabled() -> bool
  • added: function gt(val: _T) -> _ValidatorType[_T]
  • added: function le(val: _T) -> _ValidatorType[_T]
  • added: function lt(val: _T) -> _ValidatorType[_T]
  • added: function max_len(length: int) -> _ValidatorType[_T]
  • added: function set_disabled(run: bool) -> None
  • added: function asdict(inst: Any, recurse: bool=…, filter: Optional[_FilterType[Any]]=…, dict_factory: Type[Mapping[Any, Any]]=…, retain_collection_types: bool=…, value_serializer: Optional[Callable[[type, Attribute[Any], Any], Any]]=…, tuple_keys: bool=…) -> Dict[str, Any]
  • added: function astuple(inst: Any, recurse: bool=…, filter: Optional[_FilterType[Any]]=…, tuple_factory: Type[Sequence[Any]]=…, retain_collection_types: bool=…) -> Tuple[Any, ...]