Skip to content
Discussion options

You must be logged in to vote

col "fixes" the type of its argument (Hero.name), but Pycharm argues on not seeing name attribute in Hero class. Resolving this attribute access happens before passing it to col. So, col can't fix it (and it's not its purpose).

col casts the Hero.name from str type to column type.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@fragfeaster777
Comment options

@YuriiMotov
Comment options

Answer selected by fragfeaster777
@fragfeaster777
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
2 participants