Comment

Comment by yoyohello13

You can annotate OR types in python so in this case you could do

def fooify(x: int | list[int])

parent yoyohello13 2 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton