Atools

Latest version: v0.14.2

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

Scan your dependencies

Page 2 of 4

0.12.0

0.11.0

0.10.6

Arguments that can never be recreated (arguments that use `object.__hash__`, which bases hash on `id()`) automatically delete memo when they are garbage collected. So, the following example now runs without issue.

class Foo:
pass

memoize
def bar(foo: Foo) -> None:
pass

foo = Foo()
bar(foo)
assert len(bar.memoize) == 1
del foo
assert len(bar.memoize) == 0

0.10.5

* Memoized functions are now tracked with weakref by this package, so they may be garbage collected.
* Memoized functions that use a non-default keygen can now be called with default kwargs omitted.

0.10.4

0.10.3

Page 2 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.