Skip to content

How to return an uninstantiated class? #1288

Answered by srittau
hgalytoby asked this question in Q&A
Discussion options

You must be logged in to vote

The following should do the trick if a class is returned statically:

def get_test(cls) -> type[TestMain]:
    return TestMain

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@hgalytoby
Comment options

Answer selected by hgalytoby
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants