1. Home
  2. Data Science
  3. Python
  4. Which module provides type hint helpers such as List…

Added 25 Nov 2026

Which module provides type hint helpers such as List, Optional and Union in Python?

  1. types
  2. hints
  3. annotations
  4. typing Correct answer

Correct answer

D. typing

6 views

MCQSEXAM

Explanation

The typing module defines generic aliases and special forms.

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 D? 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