1. Home
  2. Data Science
  3. Python
  4. What does mypy do in Python?

Added 25 Nov 2026

What does mypy do in Python?

  1. Runs the program faster
  2. Statically checks type hints without running the code Correct answer
  3. Formats code
  4. Compiles Python to C

Correct answer

B. Statically checks type hints without running the code

MCQSEXAM

Explanation

mypy is a static type checker.

Reference

Asked in: Python Interview Advanced

https://docs.python.org/3/library/index.html

Preparing for an exam?

Doubts & discussion

Not sure why the answer is B? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More Python MCQs

Practise all Python MCQs

Similar MCQs