---
title: "Discussion on \"Python Type Annotations (part 3)\" | Hashnode"
description: "Discussion on \"Python Type Annotations (part 3)\". Python Type Annotations is a tutorial in 3 parts: Part 1 | Part 2 | Part 3 (this post)\n\nTable of contents\n\nVariance in Generics\nCovariance\nContravariance\nInvariance\nReferences\n\n\nVariance in Generics\nVariance in generics refers to how subtyping relati..."
url: "https://hashnode.com/posts/python-type-annotations-part-3/67a744ccb03fa97f6216fcd6"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Python Type Annotations (part 3)](https://cardamomcode.dev/python-type-annotations-part-3?utm_source=hashnode&utm_medium=feed)

Python Type Annotations is a tutorial in 3 parts: Part 1 | Part 2 | Part 3 (this post) Table of contents Variance in Generics Covariance Contravariance Invariance References Variance in Generics Variance in generics refers to how subtyping relati...

Feb 8, 2025 · 15 min read · cardamomcode.dev  
Updated Aug 10, 2025  
Read the article

-   [#python](https://hashnode.com/tag/python)
-   [#type-annotation](https://hashnode.com/tag/type-annotation)
-   [#python3](https://hashnode.com/tag/python3)
-   [#python-advanced](https://hashnode.com/tag/python-advanced)
-   [#type-annotations](https://hashnode.com/tag/type-annotations)

## Written by

[Dag Brattli](https://hashnode.com/@dbrattli)

@dbrattli · Oslo, Norway

  
[View profile](https://hashnode.com/@dbrattli)

Fable Python ▷ F# ♥️ Python. Expression, AsyncRx, RxPY. Works at Cognite. Microsoft alumni. On a quest to bridge the worlds of F# and Python 😅

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
