News for hackers. Stuff that matters.
Re:Python's Type Checking Renaissance by fennecfoxen on Tuesday January 26, 2021 @08:50PM (#25923321)
If your callback uses kwargs, you define a Protocol that describes __call__ with typed kwargs, and use that as the type. Yes, it’s clunky, but it’s possible to do.

There are no comments on this comment yet.