sobolevn · GitHub

Conversation

@sobolevn

Copy link Copy Markdown

Member

Several typing improvments:

  1. msgspec.msgpack.Enc now accepts all buffers, not just bytes | memoryview | bytearray. I've added a runtime test to proove that
  2. Renamed T and other typing-only utils to be protected names: T and _enc_hook_sig can't be imported from msgspec.msgpack in runtime

@sobolevn

@sobolevn

@sobolevn

@provinzkraut

Copy link Copy Markdown

Member

Same things seem to apply to json.pyi. Do you wanna add that to this PR?

@sobolevn

Copy link Copy Markdown

Member Author

I would prefer to analyze all modules one by one, there are multiple type errors there as well :)

provinzkraut

@sobolevn

provinzkraut

@sobolevn

@sobolevn

@sobolevn

@sobolevn

@sobolevn

@sobolevn

@sobolevn

@sobolevn

Labels

None yet

2 participants

@sobolevn @provinzkraut

Read the original on github.com ↗