Skip to content

Upgrading attrs 18 to 19

Unknown18.2.0 → 19.3.0

Fetching 3 releases from GitHub…0 / 3
UnknownUpgrade verdict

DepDelta is still reading the notes for this range, 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.

Requires Python >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.* from 19.1.0 (none stated before).

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

  • changed: field Attribute.repr: bool → field Attribute.repr: _ReprArgType
  • changed: function asdict(inst: Any, recurse: bool=…, filter: Optional[_FilterType]=…, dict_factory: Type[Mapping[Any, Any]]=…, retain_collection_types: bool=…) -> Dict[str, Any] → function asdict(inst: Any, recurse: bool=…, filter: Optional[_FilterType[Any]]=…, dict_factory: Type[Mapping[Any, Any]]=…, retain_collection_types: bool=…) -> Dict[str, Any]
  • changed: function astuple(inst: Any, recurse: bool=…, filter: Optional[_FilterType]=…, tuple_factory: Type[Sequence]=…, retain_collection_types: bool=…) -> Tuple[Any, ...] → function astuple(inst: Any, recurse: bool=…, filter: Optional[_FilterType[Any]]=…, tuple_factory: Type[Sequence[Any]]=…, retain_collection_types: bool=…) -> Tuple[Any, ...]
  • changed: function attrib(default: None=…, validator: None=…, repr: bool=…, cmp: bool=…, hash: Optional[bool]=…, init: bool=…, convert: None=…, metadata: Optional[Mapping[Any, Any]]=…, type: None=…, converter: None=…, factory: None=…, kw_only: bool=…) -> Any | (default: None=…, validator: Optional[_ValidatorArgType[_T]]=…, repr: bool=…, cmp: bool=…, hash: Optional[bool]=…, init: bool=…, convert: Optional[_… → 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]=…) -> Any | (default: None=…, validator: Optional[_ValidatorArgType[_T]]=…, repr: _ReprArgType=…, cmp: Optional[…
  • changed: function attrs(maybe_cls: _C, these: Optional[Dict[str, Any]]=…, repr_ns: Optional[str]=…, repr: bool=…, cmp: bool=…, hash: Optional[bool]=…, init: bool=…, slots: bool=…, frozen: bool=…, weakref_slot: bool=…, str: bool=…, auto_attribs: bool=…, kw_only: bool=…, cache_hash: bool=…) -> _C | (maybe_cls: None=…, these: Optional[Dict[str, Any]]=…, repr_ns: Optional[str]=…, repr: bool=…, cmp: bool=…, ha… → 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]=…) -> _C | (maybe_cls: None=…, these: Optional…
  • changed: function fields_dict(cls: type) -> Dict[str, Attribute] → function fields_dict(cls: type) -> Dict[str, Attribute[Any]]
  • 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: bool=…, hash: Optional[bool]=…, init: bool=…, slots: bool=…, frozen: bool=…, weakref_slot: bool=…, str: bool=…, auto_attribs: bool=…, kw_only: bool=…, cache_hash: bool=…) -> type → 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…
  • added: export VersionInfo
  • added: field Attribute.eq: bool
  • added: field Attribute.order: bool
  • added: class NotCallableError(TypeError)
  • added: class PythonTooOldError(RuntimeError)
  • added: constructor NotCallableError(msg: str, value: Any) -> None
  • added: field NotCallableError.msg: str
  • added: field NotCallableError.value: Any
  • changed: function exclude(*what: Union[type, Attribute]) -> _FilterType → function exclude(*what: Union[type, Attribute[Any]]) -> _FilterType[Any]
  • changed: function include(*what: Union[type, Attribute]) -> _FilterType → function include(*what: Union[type, Attribute[Any]]) -> _FilterType[Any]
  • changed: function instance_of(type: Union[Tuple[Type[_T], ...], Type[_T]]) -> _ValidatorType[_T] → function instance_of(type: Type[_T]) -> _ValidatorType[_T] | (type: Tuple[Type[_T]]) -> _ValidatorType[_T] | (type: Tuple[Type[_T1], Type[_T2]]) -> _ValidatorType[Union[_T1, _T2]] | (type: Tuple[Type[_T1], Type[_T2], Type[_T3]]) -> _ValidatorType[Union[_T1, _T2, _T3]] | (type: Tuple[type, ...]) -> _ValidatorType[Any]
  • added: function deep_iterable(member_validator: _ValidatorType[_T], iterable_validator: Optional[_ValidatorType[_I]]=…) -> _ValidatorType[_I]
  • added: function deep_mapping(key_validator: _ValidatorType[_K], value_validator: _ValidatorType[_V], mapping_validator: Optional[_ValidatorType[_M]]=…) -> _ValidatorType[_M]
  • added: function is_callable() -> _ValidatorType[_T]
  • added: function matches_re(regex: AnyStr, flags: int=…, func: Optional[Callable[[AnyStr, AnyStr, int], Optional[Match[AnyStr]]]]=…) -> _ValidatorType[AnyStr]