Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

111
Views
Python Marshmallow type stubs for mypy

I have tried to find type stubs for the popular Marshmallow [de]serialization library commonly used with Flask. I see how, given the often dynamic nature of the library's functionality, typing it might be difficult, but it would still be interesting to know if any meaningful work has been put into it.

TLDR: Are there type stubs for Marshmallow?

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Marshmallow distributes type information as part of the package. There are no separate stubs because there is no need for them.

If you want to learn about the mechanism it uses, look at PEP561. It includes a py.typed file via its setup.py which indicates that the package provides type annotations.

If you're unsure how to use this with mypy, simply install marshmallow in the same environment as mypy. e.g. If using virtualenvs, install mypy and marshmallow in the same virtualenv, just as you would install a type stub package.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!