# Fixing Subclassing in Pathlib

**URL:** <https://discuss.python.org/t/fixing-subclassing-in-pathlib/8983>\
**Category:** Ideas\
**Created:** [May 28, 2021, 10:48pm UTC](https://discuss.python.org/t/fixing-subclassing-in-pathlib/8983 "2021-05-28T22:48:39Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Melendowski](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/melendowski/32/2960_2.png) [@Melendowski](https://discuss.python.org/u/Melendowski)\
**Post date:** [May 31, 2021, 2:10pm UTC](https://discuss.python.org/t/fixing-subclassing-in-pathlib/8983/4 "2021-05-31T14:10:36Z")

</div>

If you’re going to provide a class decorator, why not just go the route of paramterizing your classes with a required keyword arg from ` __init_subclass__ `?

Require ` __init_subclass__ ` to specify if posix or windows

---

_[View the full topic](https://discuss.python.org/t/fixing-subclassing-in-pathlib/8983)._
