You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: nepali/number/_number.py
+12-5Lines changed: 12 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -13,39 +13,46 @@ class NepaliNumber:
13
13
@classmethod
14
14
defconvert_and_add_comma(cls, number):
15
15
warnings.warn(
16
-
message="NepaliNumber.convert_and_add_comma has been moved to `convert_and_add_comma. This function is depreciated and will be removed in the future release.",
16
+
message="NepaliNumber.convert_and_add_comma has been moved to "
17
+
"`convert_and_add_comma. This function is depreciated and will "
18
+
"be removed in the future release.",
17
19
category=DeprecationWarning,
18
20
)
19
21
returnadd_comma(english_to_nepali(number))
20
22
21
23
@staticmethod
22
24
defconvert(num):
23
25
warnings.warn(
24
-
message="NepaliNumber.convert has been moved to `english_to_nepali. This function is depreciated and will be removed in the future release.",
26
+
message="NepaliNumber.convert has been moved to `english_to_nepali. "
27
+
"This function is depreciated and will be removed in the future release.",
25
28
category=DeprecationWarning,
26
29
)
27
30
returnenglish_to_nepali(num)
28
31
29
32
@staticmethod
30
33
defrevert(num):
31
34
warnings.warn(
32
-
message="NepaliNumber.revert has been moved to `nepali_to_english. This function is depreciated and will be removed in the future release.",
35
+
message="NepaliNumber.revert has been moved to `nepali_to_english. "
36
+
"This function is depreciated and will be removed in the future release.",
33
37
category=DeprecationWarning,
34
38
)
35
39
returnnepali_to_english(num)
36
40
37
41
@staticmethod
38
42
defadd_comma(number):
39
43
warnings.warn(
40
-
message="NepaliNumber.add_comma has been moved to `add_comma. This function is depreciated and will be removed in the future release.",
44
+
message="NepaliNumber.add_comma has been moved to `add_comma. "
45
+
"This function is depreciated and will be removed in the future release.",
41
46
category=DeprecationWarning,
42
47
)
43
48
returnadd_comma(number)
44
49
45
50
@staticmethod
46
51
defadd_comma_english(number):
47
52
warnings.warn(
48
-
message="NepaliNumber.add_comma_english has been moved to `add_comma_english. This function is depreciated and will be removed in the future release.",
53
+
message="NepaliNumber.add_comma_english has been moved to "
54
+
"`add_comma_english. This function is depreciated and will "
description="nepalidatetime compatible with python's datetime feature. Converting nepali date to english, parsing nepali datetime, nepali timezone, and timedelta support in nepali datetime",
40
+
description="nepalidatetime compatible with python's datetime feature. "
41
+
"Converting nepali date to english, parsing nepali datetime, "
42
+
"nepali timezone, and timedelta support in nepali datetime",
0 commit comments