Fatma Kahveci
  • coding
  • python
  • backend
  • frontend
  • go
  • bash
  • aws
  • Travel
  • Reading

typing - Support for type hints

Fatma Kahveci
Coding
Page content
  • Type aliases
    • Any
    • Union
    • Tuple
    • Callable
    • TypeVar
    • Generic
  • It provides runtime support for type hints.

Type aliases

  • A type alias is defined by assigning the type to the alias.
Vector = list[float]

def <function_name>(<parameter>: Vector) -> Vector:
    ...

Any

Union

Tuple

Callable

TypeVar

Generic


Ref

  • Python
  • coding
  • algorithms
  • data structures
About Fatma Kahveci
« Previous

Underscores in Python

Next »

Trie

comments powered by Disqus

Recent Posts

  • Apache HBase
  • Binary tree traversal
  • Concurrency
  • Content delivery network (CDN)
  • Database
  • Dogpile effect
  • Dynamic Programming (DP)
  • Google BigTable
  • Jaccard Similarity
  • MongoDB

Social

Spotify
Twitter
Instagram
LinkedIn
GitHub

Tags

algorithm algorithms aws bacteria bacterial strain identification bash bfs big-oh-notation bigtable bioinformatician bioinformatics bioinformática biyoinformatik cloud computing coding concurrency covid19 css data data structures database design patterns dfs diccionario dictionary Django en-es en-tr framework frontend gene transfer go html javascript MongoDB network newbies nextjs nosql NumPy post Python react reading redux Software sql strain sözlük travel tree traversal turkey typescript user interface web development webpack
© 2023 Fatma Kahveci. Generated with Hugo and Mainroad theme.