by lostmsu · 3y ago · 0 comments
This is along the lines of
def is_valid_email(email): return str(email).contains('@')
class Person:
...
def __str__(self): return $"{self.name} <{self.email}>"
print(is_valid_email(Person(name='Peter @ Work', email=None)))The error you have posted isn't a Python error.
Looking a bit deeper, the error occurs in C++ code. C++ is a statically typed language, last time I checked.