File: arguments_differ_issue5371.py

package info (click to toggle)
pylint 2.16.2-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 17,612 kB
  • sloc: python: 71,638; makefile: 135
file content (13 lines) | stat: -rw-r--r-- 326 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
"""https://github.com/PyCQA/pylint/issues/5371"""
from enum import Enum


class MyEnum(Enum):
    """
    Enum._generate_next_value_() in the stdlib currently lacks a
    @staticmethod decorator.
    """

    @staticmethod
    def _generate_next_value_(name: str, start: int, count: int, last_values: list):
        return 42