Skip to content

Hot fix typing Optional check

Latest
Compare
Choose a tag to compare
@alanyoukan alanyoukan released this 20 Jun 06:09
· 7 commits to master since this release

Issue:

  • No _Union in typing anymore
  • Cannot check if field type is instance of typing.Optional nor typing.Union directly. (though typing.Optional[T] works)
  • For now, this hot fix checks ALL typing.Generic whether has parameterized type None and consider it as optional type