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
In the following, we define a class, in this class, we define a decorated function with annotated types "str" that is not consistent with "None. Then gpython crashes. We test the example on the online gpython Go/wasm and Gopherjs provided online.
test.py
class Link(str):
print_name = None
@print_name
def friendly_name(self) -> str:
return self.print_name or self
In the following, we define a class, in this class, we define a decorated function with annotated types "str" that is not consistent with "None. Then gpython crashes. We test the example on the online gpython Go/wasm and Gopherjs provided online.
test.py
Output on GO/wasm(https://gpython.org/?wasm):
Output on Gopherjs (https://gpython.org/)
The text was updated successfully, but these errors were encountered: