Open benjaminleighton opened 10 months ago
Ok, noted. These namelists are not currently used, so let me now if this is causing any issues with the current CSIRO implementation, if so, I'll just remove the imports, otherwise, I will wait for the full namelist implementation to fix
https://docs.pydantic.dev/2.6/errors/usage_errors/#unevaluable-type-annotation
This happens for example in https://github.com/rom-py/rompy/blob/f3b4af91c546d34abbcc09d6f677575c5af8ddf8/rompy/schism/namelists/cosine.py#L253
because
MARCO the type is potentially confused with MARCO the field name on the COSINE class one of the ways to resolve this is to define a new variable to hold the type/class with a different name and use that like
MARCO_AS_TYPE = MARCO ... MARCO: MARCO_AS_TYPE = Field(..., description="MARCO parameters")