you can check the version work from there, but you will need to do so (branch the code) not only for the import but elsewhere in the code where you would otherwise use annotations. It will clutter the code.
to fix the first line problem - you can have a "helper" file, e.g. myannotation.py with only the
then you can import that file/module in the if block or with the try block
the cleanest way is to develop on same version as production (assuming you don't want or can't upgrade the production)
to fix the first line problem - you can have a "helper" file, e.g. myannotation.py with only the
from __future__ import annotations
line (i.e. on the first line)then you can import that file/module in the if block or with the try block
the cleanest way is to develop on same version as production (assuming you don't want or can't upgrade the production)
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs