class name should be PascalCase
This product is not supported for your selected
Datadog site. (
).
이 페이지는 아직 영어로 제공되지 않습니다. 번역 작업 중입니다.
현재 번역 프로젝트에 대한 질문이나 피드백이 있으신 경우
언제든지 연락주시기 바랍니다.ID: python-code-style/class-name
Language: Python
Severity: Notice
Category: Code Style
Description
Class names should be PascalCase and not camelCase or snake_case.
Learn More
Non-Compliant Code Examples
class _runtimeMetricsStatus(type):
pass
class myClass(Parent):
def __init__(self):
pass
Compliant Code Examples
class REQUESTS_MODE(IntEnum):
AGENTLESS_EVENTS = 0
EVP_PROXY_EVENTS = 1
class _RuntimeMetricsStatus(type):
pass
class Migration(migrations.Migration):
dependencies = [
('tweets', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='tweet',
name='parent',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='replies', to='tweets.tweet'),
),
migrations.DeleteModel(
name='Reply',
),
]
class MyClass(Parent):
def __init__(self):
pass
class TestRestapiV4Lock(FunctionalTestController):
pass
class TestS3Storage(TestCase):
pass
class TestS35Storage(TestCase):
pass
class TestS35Storage(TestCase):
pass
class Float64Serializer(object):
pass
class LongNameThatHa5SomeNumbers999:
pass
class K8sFaultyChangeSignal:
pass
class ModeA:
pass
class CreateAMode:
pass
class context(ContextDecorator):
pass
원활한 통합. Datadog Code Security를 경험해 보세요