stapi-spec / stapi-fastapi

Spatio Temporal Asset Tasking with FastAPI
MIT License
12 stars 4 forks source link

use type statement instead of TypeAliasType and update pyproject to lock to 3.12 #76

Closed austin-sidekick closed 1 month ago

austin-sidekick commented 1 month ago

Only worked on 3.12 because of the usage of TypeAliasType <- according to python typing docs, TypeAliasType should not be used directly to create annotations and TypeAlias is deprecated in favor of type statements from 3.12 onward https://docs.python.org/3/library/typing.html#typing.TypeAlias

austin-sidekick commented 1 month ago

Instead of using TypeAlias, I should use type statements as described in the python docs

nvm: type statements are only available in 3.12

c-wygoda commented 1 month ago

Is the intention to leave it locked to 3.12, not even supporting the current release (3.13)?

austin-sidekick commented 1 month ago

Is the intention to leave it locked to 3.12, not even supporting the current release (3.13)?

The intention is to leave it locked to 3.12 for simplicity for now and expand when necessary.