Skip to content

Variance practice problems in Python

Difficulty:
Category:
Tag:

Showing 9 of 9

Status Title Difficulty
Accept broad, return narrow: group_by and merge_counts Medium
Generic dataclasses, Self, and the covariance question Hard
Placement 1/6: generics and variance Medium
Producer, Consumer, Cell: variance by member set Hard
Retry, and the predicate that reads backwards Hard
The protocol attribute invariance trap Hard
TypedDict: Required, NotRequired and the ReadOnly unlock Medium
Variance in generic protocols Hard
Why list[Dog] is not a list[Animal] Medium