Skip to content
Sharp

Type Hints · interview question

Which naming or modeling choice is strongest for typeddict and shaped data?

Multiple choiceMediumchapter-10-curatedpremiumtype-hintstypeddict-and-shaped-data
python
from typing import TypedDict

class OrderRow(TypedDict):
    sku: str
    quantity: int
Choose one answer
Answer and explanation

Correct answer

A. Use names and structures that describe the business fact directly instead of temporary implementation noise.

Why

Clear naming and modeling shorten debugging, review, and onboarding time.

Test yourself on Type Hints

A free test with instant, explained results. No account needed.

Start free test
All Type Hints questions →