When I'm typing the last line, VSCode is expected to hint me the type of parameter should be
int
,
Using Python 3.12.3
When your script was executed. I received an error message that said,
line 19, in <module> printer = Foo2 if check_equal else Foo NameError: name 'check_equal' is not defined.
check_equal: bool
should be check_equa l= bool
a.print('int')
Output:
int 3