Skip to content
Print-X
HomeFrame A PostAuthorsPopularLatestStoresPlansAboutFAQLog In
← Discover authors
A VOICE WORTH KEEPING

Anthony Shaw ?????

@anthonypjshaw · 1 posts

Words to make your own.

Explore more posts ↗
Anthony Shaw ?????@anthonypjshaw
𝕏
Python 3.11 also introduces the "Self" type. Great for class methods that return an instance of cls. (e.g. factory methods). They're also great for having type-valid inheritance. super_me is an AdminPerson, even though the class method is described in the base class.Image attached to this post
604likes82reposts
Make it yours
Print-X

Good posts deserve a life
beyond the timeline.

ExploreCreator storesPopular postsFrame a post
Print-XPlansAbout usFAQs & support
Let's talkhello@print-x.com ↗

Questions, ideas or a bulk order?
We'd love to hear from you.

© 2026 Print-X. All rights reserved.Terms of usePrintYourTweet ↗Sell your own merch — open a free store on Merch5 ↗Back to top ↑