StrEnum icon indicating copy to clipboard operation
StrEnum copied to clipboard

black fails for `strenum/__init__.pyi`

Open mtelka opened this issue 3 weeks ago • 0 comments

______________________________ Black format check ______________________________
--- /data/builds/oi-userland/components/python/StrEnum/build/amd64-3.9/strenum/__init__.pyi     2023-06-29 21:39:30+00:00
+++ /data/builds/oi-userland/components/python/StrEnum/build/amd64-3.9/strenum/__init__.pyi     2025-01-31 10:38:02.119574+00:00
@@ -1,10 +1,15 @@
 import enum
 from typing import Union, Sequence, Mapping, Any

 class StrEnum(str, enum.Enum):
-    def __new__(cls, value: Union[str, enum.auto], *args: Sequence[Any], **kwargs: Mapping[Any, Any]) -> StrEnum: ...
+    def __new__(
+        cls,
+        value: Union[str, enum.auto],
+        *args: Sequence[Any],
+        **kwargs: Mapping[Any, Any]
+    ) -> StrEnum: ...
     def __str__(self) -> str: ...
     def _generate_next_value_(name: str, *_) -> str: ...

 class LowercaseStrEnum(StrEnum):
     def _generate_next_value_(name: str, *_) -> str: ...

Tested with pytest-black 0.6.0 and black 25.1.0 installed.

mtelka avatar Jan 31 '25 10:01 mtelka