You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you try to use a string annotation in some other location
1315
+
which expects a TypeForm, the string value will always be treated as a ``str``
1316
+
even if a ``TypeForm`` would be more appropriate and this error code
1317
+
will be generated:
1318
+
1319
+
.. code-block:: python
1320
+
1321
+
# Error: TypeForm containing a string annotation cannot be recognized here. Surround with TypeForm(...) to recognize. [maybe-unrecognized-str-typeform]
1322
+
# Error: List item 0 has incompatible type "str"; expected "TypeForm[Any]" [list-item]
# Error: TypeForm containing a string annotation cannot be recognized here. Surround with TypeForm(...) to recognize. [maybe-unrecognized-str-typeform]
0 commit comments