But what if you actually don't want str
to be valid?
wasabi
I know that Iterable
and Collection
aren't the same. My point is, that if you use Iterable[str]
or Collection[str]
as a more flexible alternative to list[str]
you no longer have any type-hinting support protecting against passing in a plain string and you could end up with a subtle bug by unexpectedly looping over ['f', 'o', 'o']
instead of ['foo']
.
Don't do this. Running unpatched software is a recipe for disaster.
Because it stops them from feeling like shit because of withdrawal.
Thanks for your work!
...and you can charge your phone with the laptop USB-C charger just fine.
Lemmy is having an identity crisis of sorts. It was built to be decentralized yet we (users) seem to want to centralize everything and we all go to a few of the largest instances.
Is that any different on Mastodon and other Fediverse projects?
If you use osmand for navigation you can use that to view your tracks, too.
alias clearswap='sudo swapoff -a && sudo swapon -a'
alias grep='grep --color=auto'
alias ls='ls --color=auto --group-directories-first'
alias la='ls -lAh --color=auto --group-directories-first'
alias timestamp='date +%Y-%m-%dT%H-%M-%S'
Will it be open source like infinity?
str
matches most of these contracts, though, requiring additional checks if astr
was passed or one of these collections containing strings.