Tag view

#typing

Cross-subject tag search for related interview cards.

Clear

Results update as you type. Press / to jump straight into search.

Tagged with typing

5 cards

Python Easy Theory

Dynamic typing and strong typing in Python

Python is dynamically typed because types are checked at runtime, and strongly typed because values do not silently coerce across unrelated types.

  • Names bind to objects
  • Type checks happen at runtime
  • Explicit conversion is preferred

Dynamic typing and strong typing in Python

Python Medium Theory

Return values, multiple return values, function annotations, and docstrings

Python functions can return any object, often pack multiple results into a tuple, and may document intent through annotations and docstrings.

  • Multiple returns are tuple packing
  • Annotations describe intent, not runtime enforcement by default
  • Docstrings explain usage and behavior

Return values, multiple return values, function annotations, and docstrings

Python Hard Theory

Type hints: `Optional`, `Union`, `Literal`, `Any`, generics, `Protocol`, and type checking tools

Type hints document intent, improve tooling, and can express unions, optional values, generics, literal constraints, protocols, and escape hatches like `Any`.

  • Hints help humans and tools
  • `Protocol` supports structural typing
  • Mypy and Pyright are common static type checkers

Type hints: `Optional`, `Union`, `Literal`, `Any`, generics, `Protocol`, and type checking tools

React Medium Theory

TypeScript with React: props, state, events, refs, and generic components

TypeScript helps React codebases by making props, events, state, refs, and reusable abstractions safer and easier to navigate.

  • Type props and state explicitly where helpful
  • Events and refs have useful built-in types
  • Generic components support reusable typed abstractions

TypeScript with React: props, state, events, refs, and generic components