chore: apply pep8-naming rules for naming convention (#8261)

This commit is contained in:
Bowen Liang
2024-09-11 16:40:52 +08:00
committed by GitHub
parent 53f37a6704
commit 292220c596
95 changed files with 287 additions and 258 deletions

View File

@@ -84,7 +84,7 @@ def timestamp_value(timestamp):
raise ValueError(error)
class str_len:
class StrLen:
"""Restrict input to an integer in a range (inclusive)"""
def __init__(self, max_length, argument="argument"):
@@ -102,7 +102,7 @@ class str_len:
return value
class float_range:
class FloatRange:
"""Restrict input to an float in a range (inclusive)"""
def __init__(self, low, high, argument="argument"):
@@ -121,7 +121,7 @@ class float_range:
return value
class datetime_string:
class DatetimeString:
def __init__(self, format, argument="argument"):
self.format = format
self.argument = argument