RSSAmplifier

smhk · Aug 2, 2024

Python forward reference

0
Sign in to vote or save

This site does not allow itself to be embedded. You can still read it on the original site — the toolbar below keeps your place in the directory.

Prior to Python 3.12 , recursive type require from __future__ import annotations : Example of a recursive type from __future__ import annotations class Something : def __init__ ( self , parent : Something | None ) -> None : self . parent : Something | None = parent

Read on smhk.net

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.