Closed mshudrak closed 1 year ago
This can be solved by replacing TextIO | None
with Optional[TextIO]
, the pipe syntax is newer but in this case the two statements are exactly equivalent.
Thanks @ZetaTwo, it works! I will submit PR soon. I will also make a separate issue to have in mind that we need to add a test for GCP Scanner on older versions of Python3.
Affected Component
Describe the bug Currently we are having the following error on older versions of Python3.
To Reproduce Use python 3.9.2 + GCP Scanner main branch.
Expected behavior We need to support older versions of Python at least default versions of Linux, Windows and MacOS. We also need to have tests for older versions of Python3.