# Whether private members should affect PEP 695's type-var variance

**URL:** <https://discuss.python.org/t/whether-private-members-should-affect-pep-695s-type-var-variance/38959>\
**Category:** Typing\
**Created:** [November 17, 2023, 10:47am UTC](https://discuss.python.org/t/whether-private-members-should-affect-pep-695s-type-var-variance/38959 "2023-11-17T10:47:13Z")\
**Posts on this page:** 1\
**Showing post:** 24

<div class="post-metadata">

**Author:** ![Daverball](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/daverball/32/15931_2.png) [@Daverball](https://discuss.python.org/u/Daverball)\
**Post date:** [November 20, 2023, 9:40am UTC](https://discuss.python.org/t/whether-private-members-should-affect-pep-695s-type-var-variance/38959/24 "2023-11-20T09:40:24Z")

</div>

You can achieve this by declaring `K` and `V` manually with the variance you want. auto variance should be safe by default, if you want to do unsafe things, then you have to be explicit, I don’t think that is too much to ask. PEP695 was supposed to be a simplification for the most common cases, it was never intended to replace manually specifying `TypeVar` variance entirely, since that is not possible.

---

_[View the full topic](https://discuss.python.org/t/whether-private-members-should-affect-pep-695s-type-var-variance/38959)._
