Use attr.s(auto_attribs=True) in more places

It's nicer to read without the attr.ib noise.
This commit is contained in:
Ran Benita
2021-10-04 18:32:05 +03:00
parent dced00e60f
commit e5468681b0
13 changed files with 103 additions and 109 deletions

View File

@@ -158,12 +158,12 @@ class TempPathFactory:
@final
@attr.s(init=False)
@attr.s(init=False, auto_attribs=True)
class TempdirFactory:
"""Backward compatibility wrapper that implements :class:``_pytest.compat.LEGACY_PATH``
for :class:``TempPathFactory``."""
_tmppath_factory = attr.ib(type=TempPathFactory)
_tmppath_factory: TempPathFactory
def __init__(
self, tmppath_factory: TempPathFactory, *, _ispytest: bool = False