Magic-filter

Latest version: v1.0.12

Safety actively analyzes 681812 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 3

1.0.12

What's Changed
* Replace deprecated isort and bump mypy in https://github.com/aiogram/magic-filter/pull/16
* Regexp functions support in https://github.com/aiogram/magic-filter/pull/13
* Fixed `extract` operation for negative results, just returns `None` instead of `False`

**Full Changelog**: https://github.com/aiogram/magic-filter/compare/v1.0.11...v1.0.12

1.0.11

What's Changed
- Use abstract Container type for `in` operations (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 check `if magic:` (the same as `if magic is not None`)
- Extended func operation, added possibility to use `*args`, `**kwargs`
- Added possibility to specify regexp flags

**Full Changelog**: https://github.com/aiogram/magic-filter/compare/v1.0.10...v1.0.11

1.0.10

- Added hint for len(F) error (8)
- Added `not in` operation (10)
- Migrated to hatchling (11)

1.0.9

- 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).

1.0.8

- Added `.cast(callable)` operation to make type-cast with suppressing any errors

1.0.7

- Added "selector" operation which helps to check part of the object like `F.chat[F.type == "private"]`
- Fixed sequences typing

Page 1 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.