Releases: pwwang/python-varname
Releases · pwwang/python-varname
0.14.0
- BREAKING CHANGE: deprecate nameof (see #117 (comment))
- docs: remove deprecated nameof examples from README
- chore(deps): update asttokens to version 3.0.0 and adjust dependencies
- style: clean up unused imports and add spacing for readability for test files
- ci: update build workflow to use Ubuntu 24.04 and adjust Python version conditions
- chore(deps): add ipykernel dev dependency version 6.29.5 to run playground notebook
- chore(deps): update content-hash in poetry.lock after dependency changes
Full Changelog: 0.13.5...0.14.0
0.13.5
- deps: bump up executing to ^2.1 to fix issues with python3.13
Full Changelog: 0.13.4...0.13.5
0.13.4
- core: switch to poetry-core (#113)
- deps: bump up dependencies
- feat: support python 3.13 (#116)
- ci: use latest CI actions
- DEPRECATED: add warning to deprecate nameof in the future
What's Changed
New Contributors
Full Changelog: 0.13.3...0.13.4
0.13.3
0.13.2
0.13.1
What's Changed
- Create py.typed for mypy compatibility by @elliotgunton in #109
New Contributors
- @elliotgunton made their first contribution in #109
Full Changelog: 0.13.0...0.13.1
0.13.0
- style: change max line length to 88
- style: clean up test code styles
- feat: support subscript node for varname (#104)
- ci: remove python3.8 from CI
- breaking!:
varname
ofa.b
now returns"a.b"
instead of"a"
What's Changed
Full Changelog: 0.12.2...0.13.0
0.12.2
- Add
helpers.exec_code
function to replaceexec
so that source code is available at runtime
from varname import argname
from varname.helpers import exec_code
class Obj:
def __init__(self):
self.argnames = []
def receive(self, arg):
self.argnames.append(argname('arg', func=self.receive))
obj = Obj()
# exec('obj.receive(1)') # Error
exec_code('obj.receive(1)')
exec_code('obj.receive(2)')
print(obj.argnames) # ['1', '2']
What's Changed
Full Changelog: 0.12.1...0.12.2
0.12.1
0.12.0
- Support python 3.12
- Update python3.12 to CI
- Bump
executing
to^2.0
- Bump up other dependencies
- Add Dockerfile for codesandbox
Full Changelog: 0.11.2...0.12.0