Verified Commit 0cba3203 authored by Dom Sekotill's avatar Dom Sekotill
Browse files

Correct signature of Enum._generate_next_value_

Apparently the method should be callable with keyword arguments.  Mypy
doesn't seem to care by pyright does.
parent 3de644a2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -81,7 +81,7 @@ class ConfigEnum(Enum):
		return str(self.value)

	@staticmethod
	def _generate_next_value_(name: str, *_: object) -> str:
	def _generate_next_value_(name: str, start: object, count: object, last_values: object) -> str:
		return name.replace("_", "-")