Skip to main content

scala-generics-variance

How to handle type variance in Scala generics when translating from Python's flexible type system. Use this whenever translating Python generic types (TypeVar with covariant/contravariant bounds) to Scala. Covers covariance (+T), contravariance (-T), and invariance for proper type safety.

Jump to install

Source facts

Repository
cxcscmu/SkillLearnBench
Last source activity
April 24, 2026 at 05:14
Detected SKILL.md language
English
Stars
77
Forks
4

Install options

The review-first prompt is selected by default. You can switch to a direct command or download a local copy.

Review the source files

Read SKILL.md and any companion files shown by SkillsMP before deciding whether to install.