Signature.return_annotation
somehow turns into string when the function is ran under a marimo cell
#3312
Labels
bug
Something isn't working
Describe the bug
Running code snippet
on python console it prints
tuple[str, int] <class 'types.GenericAlias'>
according to expectation, but on a marimo cell it printstuple[str, int] <class 'str'>
, so somehow the return annotation type is a string instead of an actual type object.Also occurs on functions with primitive return type annotations like
def wololo(i: int, ii: int) -> int
Could be a
inspect.signature
bug too but I haven't seen any clue pointing that way yetEnvironment
Code to reproduce
No response
The text was updated successfully, but these errors were encountered: