Open kdheepak opened 4 months ago
This try
block can be simplified to remove the except
block:
In Python2, f-string syntax was not supported, and Python 2 compatible s.format()
needed to be used instead, e.g.
These can be changed to using f-string syntax:
f"""<helics.{self.__class__.__name__}(identifier = "{identifier}", address = "{address}") at {hex(id(self))}>"""
I believe you don't need these at the top of the file any more:
https://github.com/GMLC-TDC/pyhelics/blob/5516142dfa81de726357c6986444c5f310240e24/helics/capi.py#L1
You can drop enum34
from the dependencies:
It looks like ruff implements pyupgrade checks/fixes, so maybe we could also run this to catch some syntax related updates: https://docs.astral.sh/ruff/rules/#pyupgrade-up
With Python2 support being dropped in #78, code associated with Python2 syntax can be upgraded to more idiomatic Python3 syntax.
This is a tracking issue for making these changes.