partizan,

Turns out using func(**kwargs)becomes very inconvinient, when you're using type-checking.

Pyright 1.1.312 landed a change:

> ... The new behavior matches that of mypy and assumes that the unpacked dict may supply arguments for all otherwise-unmatched keyword parameters even if they have default argument values.

https://github.com/microsoft/pyright/issues/5545

And now i need # type: ignore for each **kwargs.

@hynek any ideas how to approach this?

Or maybe someone on the ?

hynek,
@hynek@mastodon.social avatar

@partizan Find @ambv he says he knows

partizan,

@hynek @ambv I'm all ears!

partizan,

@ambv so, what do you think about this problem?

It also behaves the same way in mypy. But here bug is not closed, and i'm hoping it can be fixed.

https://github.com/python/mypy/issues/11583

ambv,
@ambv@mastodon.social avatar

@partizan I think it's a bug that should be fixed in Mypy.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • python
  • DreamBathrooms
  • mdbf
  • ngwrru68w68
  • magazineikmin
  • thenastyranch
  • rosin
  • khanakhh
  • osvaldo12
  • Youngstown
  • slotface
  • Durango
  • kavyap
  • InstantRegret
  • tacticalgear
  • anitta
  • ethstaker
  • provamag3
  • cisconetworking
  • tester
  • GTA5RPClips
  • cubers
  • everett
  • modclub
  • megavids
  • normalnudes
  • Leos
  • JUstTest
  • lostlight
  • All magazines