Skip to content

msgspec 0.20.0

Download JSON

  • PyPI https://pypi.org/project/msgspec/
    Repository https://github.com/jcrist/msgspec

  • py.typed

  • Coverage


    %%{init: {"pie": {"textPosition": 0.85}, "theme": "neutral", "themeVariables": {"pieStrokeWidth": "1px"}}}%%
    pie title
        "Typed" : 283
        "Any" : 33
        "Untyped" : 3
    • 99.1% coverage
    • 88.7% coverage (strict)
    • 319 typable
      • 283 typed
      • 3 untyped
      • 33 Any
  • Typables


    %%{init: {"pie": {"textPosition": 0.85}, "theme": "neutral", "themeVariables": {"pieStrokeWidth": "1px"}}}%%
    pie title
        "functions" : 107
        "classes" : 93
        "other" : 8
    • 24 functions (+12 overloads)
      • 83 parameters
    • 51 classes
      • 18 methods (+0 overloads)
        • 71 parameters
      • 4 properties
    • 8 modules
      • 8 attrs

Modules

Module Coverage Coverage (strict) Typables Ignores
msgspec 99.2% 92.4% 119 0
msgspec._typing_utils 100.0% 100.0% 4 0
msgspec.inspect 100.0% 94.9% 59 4
msgspec.json 97.9% 85.4% 48 0
msgspec.msgpack 97.4% 84.6% 39 0
msgspec.structs 100.0% 84.4% 32 0
msgspec.toml 100.0% 66.7% 9 0
msgspec.yaml 100.0% 66.7% 9 0

Incomplete Annotations

msgspec (1 missing, 8 any)

Symbol Typable Typed Any
meth Meta.init 15 14 0
meth Struct.init 3 3 2
func convert 8 8 3
func to_builtins 6 6 2
func field 4 4 1

msgspec.inspect (0 missing, 3 any)

Symbol Typable Typed Any
func type_info 2 2 1
attr Field.default 1 1 1
attr Field.default_factory 1 1 1

msgspec.json (1 missing, 6 any)

Symbol Typable Typed Any
func encode 4 4 1
meth Encoder.init 5 4 0
meth Encoder.encode 2 2 1
meth Encoder.encode_into 4 4 1
func schema 3 3 1
func decode 5 5 2

msgspec.msgpack (1 missing, 5 any)

Symbol Typable Typed Any
func encode 4 4 1
meth Encoder.init 5 4 0
meth Encoder.encode 2 2 1
meth Encoder.encode_into 4 4 1
func decode 6 6 2

msgspec.structs (0 missing, 5 any)

Symbol Typable Typed Any
func replace 3 3 1
func force_setattr 4 4 1
attr FieldInfo.type 1 1 1
attr FieldInfo.default 1 1 1
attr FieldInfo.default_factory 1 1 1

msgspec.toml (0 missing, 3 any)

Symbol Typable Typed Any
func decode 5 5 2
func encode 4 4 1

msgspec.yaml (0 missing, 3 any)

Symbol Typable Typed Any
func decode 5 5 2
func encode 4 4 1

Type-Ignore Comments

Flavor Count
type: ignore 4