Releases: aiogram/magic-filter
Releases · aiogram/magic-filter
v1.0.12
v1.0.11
What's Changed
- Use abstract Container type for
inoperations (#9) - Added
.extract(...)operation that helps to extract items from list that which meets the condition (F.foo.extract(F > 5)) - Add
__bool__method that always returns True to add possibility to checkif magic:(the same asif magic is not None) - Extended func operation, added possibility to use
*args,**kwargs - Added possibility to specify regexp flags
Full Changelog: v1.0.10...v1.0.11
v1.0.10
Preventing magic from getting out of control
- The instance of MagicFilter cannot now be used as an iterable object because objects with a getitem method can be endlessly iterated, which is not the desired behavior (like zip-bomb).
v1.0.8
- Added
.cast(callable)operation to make type-cast with suppressing any errors
v1.0.7
- Added "selector" operation which helps to check part of the object like
F.chat[F.type == "private"] - Fixed sequences typing
v1.0.6
- Improved contains operation, added possibility to use Magic as argument in
.in_(...)and.contains(...)operations - Improved regexp operation, added possibility to use search mode instead of match
.regexp(pattern, search=True) - Other small changes and improvements
v1.0.5
- Suppress TypeError/ValueError on function operation call (e. g.
TypeError: object of type 'NoneType' has no len()) oroperation marked as important to prevent reject condition
Typing
Improved MagicFilter typings
v1.0.3
- Added AttrDict object