Skip to content

Update release (PEP 604 support)

Latest
Compare
Choose a tag to compare
@dyollb dyollb released this 11 Aug 06:27
· 1 commit to main since this release
bc37b36

This update release fixes to #10. When using from __future__ import annotations, the main difference is that inspect.signature parameters use string annotations (forward declarations). These need to be detected and resolved.

  • support optional arguments: Optional[sitk.Image])
  • support PEP 604 annotations: sitk.Image | None
  • add test for from __future__ import annotations, test in Python 3.8, 3.9, 3.10, 3.11