Varname

Latest version: v0.13.5

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

Scan your dependencies

Page 4 of 6

0.8.0

0.7.3

- Indicate where the `ImproperUseError` happens for `varname()` (60)
- Add `VarnameException` and `VarnameWarning` as root for all varname-defined exceptions and warnings.

0.7.2

- Add `strict` mode to `varname()` (57)
python
def func():
return varname(strict=True)

a = func() 'a'
a = [func()] ImproperUseError


- Support the walrus operator (`:=`) (58)
python
a = (b := func())
a == b == 'b'


Credits:

- breuleux

0.7.1

- Add `ignore` argument to `argname2()`
- Fix Fix utils.get_argument_sources() when kwargs is given as `**kwargs`.

0.7.0

- ImproperUseError is now independent of VarnameRetrievingError (49)
- Deprecate argname, superseded by argname2
python
>>> argname(a, b, ...) before
>>> argname2('a', 'b', ...) after

- Add dispatch argument to argname/argment2 to be used for single-dispatched functions (53).

0.6.5

- Add `sep` argument to `helpers.debug()`

Page 4 of 6

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.