Closed anilakash closed 1 year ago
Hi, many thanks for providing the implementation. I am exploring your paper and codes and tried to install as per the Read Me. However, it throws error with SQL. Could you please suggest any quick fix to this as it seems it has something to do with may be version (Just guessing).
Error
sqlalchemy.exc.ArgumentError: Type annotation for "SQAGeneratorRun.arms" can't be correctly interpreted for Annotated Declarative Table form. ORM annotations should normally make use of the
Mapped[]
generic type, or other ORM-compatible generic type, as a container for the actual type, which indicates the intent that the attribute is mapped. Class variables that are not intended to be mapped by the ORM should use ClassVar[]. To allow Annotated Declarative to disregard legacy annotations which don't use Mapped[] to pass, set "allow_unmapped = True" on the class or a superclass this class. (Background on this error at: https://sqlalche.me/e/20/zlpr)
Fixed it by selecting the previous version.
Hi, many thanks for providing the implementation. I am exploring your paper and codes and tried to install as per the Read Me. However, it throws error with SQL. Could you please suggest any quick fix to this as it seems it has something to do with may be version (Just guessing).
Error
sqlalchemy.exc.ArgumentError: Type annotation for "SQAGeneratorRun.arms" can't be correctly interpreted for Annotated Declarative Table form. ORM annotations should normally make use of the
Mapped[]
generic type, or other ORM-compatible generic type, as a container for the actual type, which indicates the intent that the attribute is mapped. Class variables that are not intended to be mapped by the ORM should use ClassVar[]. To allow Annotated Declarative to disregard legacy annotations which don't use Mapped[] to pass, set "__allow_unmapped__ = True" on the class or a superclass this class. (Background on this error at: https://sqlalche.me/e/20/zlpr)