You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I see that Event objects are constructed incrementally, so their fields can be None temporarily in h2 code, but I wish the types could reflect what I should expect as a user. What would you think of something like this?
With the new 4.2.0 release that adds the
py.typed
marker,mypy
is reporting that myEvent
handling code should be ready forNone
values. For instance,I can expect these fields to always be set, right? I could add
assert
statements like this:But it's clunky to make users do this.
I see that
Event
objects are constructed incrementally, so their fields can beNone
temporarily inh2
code, but I wish the types could reflect what I should expect as a user. What would you think of something like this?It would work as long as
h2
itself does not accessstream_id
/headers
before setting them.The text was updated successfully, but these errors were encountered: