Talk Python To Me cover image

#385: Higher level Python asyncio with AnyIO

Talk Python To Me

Using the Type Checked Decorator on a Function in Python?

2min Snip

00:00
Play full episode
The best way would be to use the import hook. There's an import hook that will automatically add these decorators while during the import. So you don't have to alter your code at all. But there are some open issues with that import hook, like somebody reported that this import hook is installed too late that the modules in question were already imported. That's something I have yet to fix or find a workaround for.

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode