wasabi

joined 1 year ago
[–] wasabi@feddit.de 2 points 9 months ago

str matches most of these contracts, though, requiring additional checks if a str was passed or one of these collections containing strings.

[–] wasabi@feddit.de 3 points 9 months ago (3 children)

But what if you actually don't want str to be valid?

[–] wasabi@feddit.de 3 points 9 months ago* (last edited 9 months ago) (1 children)

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'].

[–] wasabi@feddit.de 6 points 11 months ago (1 children)

Don't do this. Running unpatched software is a recipe for disaster.

[–] wasabi@feddit.de 2 points 1 year ago

Because it stops them from feeling like shit because of withdrawal.

[–] wasabi@feddit.de 3 points 1 year ago

Thanks for your work!

[–] wasabi@feddit.de 24 points 1 year ago

...and you can charge your phone with the laptop USB-C charger just fine.

[–] wasabi@feddit.de 1 points 1 year ago

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?

[–] wasabi@feddit.de 3 points 1 year ago* (last edited 1 year ago)

If you use osmand for navigation you can use that to view your tracks, too.

[–] wasabi@feddit.de 1 points 1 year ago
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'
[–] wasabi@feddit.de 0 points 1 year ago (1 children)

Will it be open source like infinity?

view more: ‹ prev next ›