Skip to content Skip to sidebar Skip to footer
Showing posts with the label Python Typing

How Do I Avoid Type Errors When Internal Function Returns 'union' That Could Be 'none'?

I've been running into a bit of weirdness with Unions (and Optionals, of course) in Python - na… Read more How Do I Avoid Type Errors When Internal Function Returns 'union' That Could Be 'none'?

Typing Function When Decorator Change Return Type

how to correctly write types for the function whose return type is modified by decorator ? Simple … Read more Typing Function When Decorator Change Return Type

How Do I Avoid Type Errors When Internal Function Returns 'Union' That Could Be 'None'?

I've been running into a bit of weirdness with Unions (and Optionals, of course) in Python - na… Read more How Do I Avoid Type Errors When Internal Function Returns 'Union' That Could Be 'None'?