realvitya / pyfortinet

Fortinet Python API library
https://realvitya.github.io/pyfortinet/
2 stars 1 forks source link

Pyhton 3.9 support doesn't work #6

Closed viktorkertesz closed 4 months ago

viktorkertesz commented 5 months ago

Marino, Mariana reported: Is not working with python 3.9 (TypeError: unsupported operand type(s) for |: 'NoneType' and '_SpecialGenericAlias') - there are some type hints with pipe which is not available in python 3.9. Since pyfortinet says it should be available for python 3.9 (and we are using 3.9 in Nautobot) is that something that can be updated?

Beside that, numerous other type hints are failing under 3.9.

viktorkertesz commented 5 months ago

Patch is done, I'll push it later.

viktorkertesz commented 4 months ago

6a3498cb78327706aaea272c169a4230ac3cccf6 solved this problem