Closed tbazin closed 1 year ago
Hi @tbazin ! Thanks for the write-up. You are certainly correct that this is the appropriate place for a TypeVar
. My concern, though - as you highlighted - is that this might be a bit too complicated for the reader. I'll mull it over.
Hi!
Nice project :) Was just browsing through and I saw the solution to the assignment in Module 5 here uses explicit
Any
annotations where using a generic would seem more appropriate and better from a pedagogical perspective (I believe explicit Any annotations should generally be avoided). But I get that generics may be considered too advanced for introductory classes.The solution would then be: