cthoyt/class-resolver

ClassResolver.from_subclasses does not collect __main__ classes

mberr opened this issue · 0 comments

mberr commented

Since ClassResolver.from_subclasses excludes classes from private modules by default, and the name of the module from which a Python script is invoked is replaced by __main__, classes defined there are excluded, since they are considered private as their module name starts with _.

cf. pykeen/pykeen@442e586