tinybird 0.0.1.dev26__tar.gz → 0.0.1.dev28__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of tinybird might be problematic. Click here for more details.

Files changed (101) hide show
  1. {tinybird-0.0.1.dev26 → tinybird-0.0.1.dev28}/PKG-INFO +1 -1
  2. {tinybird-0.0.1.dev26 → tinybird-0.0.1.dev28}/tinybird/config.py +1 -1
  3. {tinybird-0.0.1.dev26 → tinybird-0.0.1.dev28}/tinybird/datafile.py +1 -1
  4. {tinybird-0.0.1.dev26 → tinybird-0.0.1.dev28}/tinybird/datatypes.py +46 -57
  5. {tinybird-0.0.1.dev26 → tinybird-0.0.1.dev28}/tinybird/git_settings.py +4 -4
  6. tinybird-0.0.1.dev28/tinybird/prompts.py +880 -0
  7. {tinybird-0.0.1.dev26 → tinybird-0.0.1.dev28}/tinybird/sql.py +9 -0
  8. {tinybird-0.0.1.dev26 → tinybird-0.0.1.dev28}/tinybird/sql_toolset.py +17 -3
  9. {tinybird-0.0.1.dev26 → tinybird-0.0.1.dev28}/tinybird/syncasync.py +1 -1
  10. {tinybird-0.0.1.dev26 → tinybird-0.0.1.dev28}/tinybird/tb/__cli__.py +2 -2
  11. {tinybird-0.0.1.dev26 → tinybird-0.0.1.dev28}/tinybird/tb/cli.py +2 -0
  12. {tinybird-0.0.1.dev26 → tinybird-0.0.1.dev28}/tinybird/tb/modules/build.py +44 -16
  13. tinybird-0.0.1.dev28/tinybird/tb/modules/build_server.py +75 -0
  14. {tinybird-0.0.1.dev26 → tinybird-0.0.1.dev28}/tinybird/tb/modules/cli.py +22 -0
  15. {tinybird-0.0.1.dev26 → tinybird-0.0.1.dev28}/tinybird/tb/modules/common.py +2 -2
  16. {tinybird-0.0.1.dev26 → tinybird-0.0.1.dev28}/tinybird/tb/modules/config.py +13 -14
  17. tinybird-0.0.1.dev28/tinybird/tb/modules/create.py +269 -0
  18. {tinybird-0.0.1.dev26 → tinybird-0.0.1.dev28}/tinybird/tb/modules/datafile/build.py +28 -0
  19. {tinybird-0.0.1.dev26 → tinybird-0.0.1.dev28}/tinybird/tb/modules/datafile/common.py +1 -0
  20. {tinybird-0.0.1.dev26 → tinybird-0.0.1.dev28}/tinybird/tb/modules/datafile/fixture.py +10 -6
  21. {tinybird-0.0.1.dev26 → tinybird-0.0.1.dev28}/tinybird/tb/modules/datafile/parse_pipe.py +2 -0
  22. {tinybird-0.0.1.dev26 → tinybird-0.0.1.dev28}/tinybird/tb/modules/datasource.py +1 -1
  23. tinybird-0.0.1.dev28/tinybird/tb/modules/deploy.py +254 -0
  24. {tinybird-0.0.1.dev26 → tinybird-0.0.1.dev28}/tinybird/tb/modules/llm.py +32 -16
  25. tinybird-0.0.1.dev28/tinybird/tb/modules/llm_utils.py +24 -0
  26. {tinybird-0.0.1.dev26 → tinybird-0.0.1.dev28}/tinybird/tb/modules/local.py +2 -2
  27. {tinybird-0.0.1.dev26 → tinybird-0.0.1.dev28}/tinybird/tb/modules/login.py +8 -6
  28. {tinybird-0.0.1.dev26 → tinybird-0.0.1.dev28}/tinybird/tb/modules/mock.py +11 -6
  29. {tinybird-0.0.1.dev26 → tinybird-0.0.1.dev28}/tinybird/tb/modules/test.py +69 -47
  30. {tinybird-0.0.1.dev26 → tinybird-0.0.1.dev28}/tinybird/tb/modules/watch.py +1 -1
  31. {tinybird-0.0.1.dev26 → tinybird-0.0.1.dev28}/tinybird/tb_cli_modules/common.py +2 -2
  32. {tinybird-0.0.1.dev26 → tinybird-0.0.1.dev28}/tinybird/tb_cli_modules/config.py +5 -5
  33. {tinybird-0.0.1.dev26 → tinybird-0.0.1.dev28}/tinybird/tb_cli_modules/datasource.py +1 -1
  34. {tinybird-0.0.1.dev26 → tinybird-0.0.1.dev28}/tinybird/tornado_template.py +1 -3
  35. {tinybird-0.0.1.dev26 → tinybird-0.0.1.dev28}/tinybird.egg-info/PKG-INFO +1 -1
  36. {tinybird-0.0.1.dev26 → tinybird-0.0.1.dev28}/tinybird.egg-info/SOURCES.txt +3 -0
  37. tinybird-0.0.1.dev26/tinybird/prompts.py +0 -233
  38. tinybird-0.0.1.dev26/tinybird/tb/modules/create.py +0 -258
  39. {tinybird-0.0.1.dev26 → tinybird-0.0.1.dev28}/setup.cfg +0 -0
  40. {tinybird-0.0.1.dev26 → tinybird-0.0.1.dev28}/tinybird/__cli__.py +0 -0
  41. {tinybird-0.0.1.dev26 → tinybird-0.0.1.dev28}/tinybird/ch_utils/constants.py +0 -0
  42. {tinybird-0.0.1.dev26 → tinybird-0.0.1.dev28}/tinybird/ch_utils/engine.py +0 -0
  43. {tinybird-0.0.1.dev26 → tinybird-0.0.1.dev28}/tinybird/check_pypi.py +0 -0
  44. {tinybird-0.0.1.dev26 → tinybird-0.0.1.dev28}/tinybird/client.py +0 -0
  45. {tinybird-0.0.1.dev26 → tinybird-0.0.1.dev28}/tinybird/connectors.py +0 -0
  46. {tinybird-0.0.1.dev26 → tinybird-0.0.1.dev28}/tinybird/context.py +0 -0
  47. {tinybird-0.0.1.dev26 → tinybird-0.0.1.dev28}/tinybird/feedback_manager.py +0 -0
  48. {tinybird-0.0.1.dev26 → tinybird-0.0.1.dev28}/tinybird/sql_template.py +0 -0
  49. {tinybird-0.0.1.dev26 → tinybird-0.0.1.dev28}/tinybird/sql_template_fmt.py +0 -0
  50. {tinybird-0.0.1.dev26 → tinybird-0.0.1.dev28}/tinybird/tb/modules/auth.py +0 -0
  51. {tinybird-0.0.1.dev26 → tinybird-0.0.1.dev28}/tinybird/tb/modules/cicd.py +0 -0
  52. {tinybird-0.0.1.dev26 → tinybird-0.0.1.dev28}/tinybird/tb/modules/connection.py +0 -0
  53. {tinybird-0.0.1.dev26 → tinybird-0.0.1.dev28}/tinybird/tb/modules/datafile/build_common.py +0 -0
  54. {tinybird-0.0.1.dev26 → tinybird-0.0.1.dev28}/tinybird/tb/modules/datafile/build_datasource.py +0 -0
  55. {tinybird-0.0.1.dev26 → tinybird-0.0.1.dev28}/tinybird/tb/modules/datafile/build_pipe.py +0 -0
  56. {tinybird-0.0.1.dev26 → tinybird-0.0.1.dev28}/tinybird/tb/modules/datafile/diff.py +0 -0
  57. {tinybird-0.0.1.dev26 → tinybird-0.0.1.dev28}/tinybird/tb/modules/datafile/exceptions.py +0 -0
  58. {tinybird-0.0.1.dev26 → tinybird-0.0.1.dev28}/tinybird/tb/modules/datafile/format_common.py +0 -0
  59. {tinybird-0.0.1.dev26 → tinybird-0.0.1.dev28}/tinybird/tb/modules/datafile/format_datasource.py +0 -0
  60. {tinybird-0.0.1.dev26 → tinybird-0.0.1.dev28}/tinybird/tb/modules/datafile/format_pipe.py +0 -0
  61. {tinybird-0.0.1.dev26 → tinybird-0.0.1.dev28}/tinybird/tb/modules/datafile/parse_datasource.py +0 -0
  62. {tinybird-0.0.1.dev26 → tinybird-0.0.1.dev28}/tinybird/tb/modules/datafile/pipe_checker.py +0 -0
  63. {tinybird-0.0.1.dev26 → tinybird-0.0.1.dev28}/tinybird/tb/modules/datafile/pull.py +0 -0
  64. {tinybird-0.0.1.dev26 → tinybird-0.0.1.dev28}/tinybird/tb/modules/exceptions.py +0 -0
  65. {tinybird-0.0.1.dev26 → tinybird-0.0.1.dev28}/tinybird/tb/modules/feedback_manager.py +0 -0
  66. {tinybird-0.0.1.dev26 → tinybird-0.0.1.dev28}/tinybird/tb/modules/fmt.py +0 -0
  67. {tinybird-0.0.1.dev26 → tinybird-0.0.1.dev28}/tinybird/tb/modules/job.py +0 -0
  68. {tinybird-0.0.1.dev26 → tinybird-0.0.1.dev28}/tinybird/tb/modules/local_common.py +0 -0
  69. {tinybird-0.0.1.dev26 → tinybird-0.0.1.dev28}/tinybird/tb/modules/pipe.py +0 -0
  70. {tinybird-0.0.1.dev26 → tinybird-0.0.1.dev28}/tinybird/tb/modules/regions.py +0 -0
  71. {tinybird-0.0.1.dev26 → tinybird-0.0.1.dev28}/tinybird/tb/modules/shell.py +0 -0
  72. {tinybird-0.0.1.dev26 → tinybird-0.0.1.dev28}/tinybird/tb/modules/table.py +0 -0
  73. {tinybird-0.0.1.dev26 → tinybird-0.0.1.dev28}/tinybird/tb/modules/tag.py +0 -0
  74. {tinybird-0.0.1.dev26 → tinybird-0.0.1.dev28}/tinybird/tb/modules/telemetry.py +0 -0
  75. {tinybird-0.0.1.dev26 → tinybird-0.0.1.dev28}/tinybird/tb/modules/tinyunit/tinyunit.py +0 -0
  76. {tinybird-0.0.1.dev26 → tinybird-0.0.1.dev28}/tinybird/tb/modules/tinyunit/tinyunit_lib.py +0 -0
  77. {tinybird-0.0.1.dev26 → tinybird-0.0.1.dev28}/tinybird/tb/modules/token.py +0 -0
  78. {tinybird-0.0.1.dev26 → tinybird-0.0.1.dev28}/tinybird/tb/modules/workspace.py +0 -0
  79. {tinybird-0.0.1.dev26 → tinybird-0.0.1.dev28}/tinybird/tb/modules/workspace_members.py +0 -0
  80. {tinybird-0.0.1.dev26 → tinybird-0.0.1.dev28}/tinybird/tb_cli.py +0 -0
  81. {tinybird-0.0.1.dev26 → tinybird-0.0.1.dev28}/tinybird/tb_cli_modules/auth.py +0 -0
  82. {tinybird-0.0.1.dev26 → tinybird-0.0.1.dev28}/tinybird/tb_cli_modules/branch.py +0 -0
  83. {tinybird-0.0.1.dev26 → tinybird-0.0.1.dev28}/tinybird/tb_cli_modules/cicd.py +0 -0
  84. {tinybird-0.0.1.dev26 → tinybird-0.0.1.dev28}/tinybird/tb_cli_modules/cli.py +0 -0
  85. {tinybird-0.0.1.dev26 → tinybird-0.0.1.dev28}/tinybird/tb_cli_modules/connection.py +0 -0
  86. {tinybird-0.0.1.dev26 → tinybird-0.0.1.dev28}/tinybird/tb_cli_modules/exceptions.py +0 -0
  87. {tinybird-0.0.1.dev26 → tinybird-0.0.1.dev28}/tinybird/tb_cli_modules/fmt.py +0 -0
  88. {tinybird-0.0.1.dev26 → tinybird-0.0.1.dev28}/tinybird/tb_cli_modules/job.py +0 -0
  89. {tinybird-0.0.1.dev26 → tinybird-0.0.1.dev28}/tinybird/tb_cli_modules/pipe.py +0 -0
  90. {tinybird-0.0.1.dev26 → tinybird-0.0.1.dev28}/tinybird/tb_cli_modules/regions.py +0 -0
  91. {tinybird-0.0.1.dev26 → tinybird-0.0.1.dev28}/tinybird/tb_cli_modules/tag.py +0 -0
  92. {tinybird-0.0.1.dev26 → tinybird-0.0.1.dev28}/tinybird/tb_cli_modules/telemetry.py +0 -0
  93. {tinybird-0.0.1.dev26 → tinybird-0.0.1.dev28}/tinybird/tb_cli_modules/test.py +0 -0
  94. {tinybird-0.0.1.dev26 → tinybird-0.0.1.dev28}/tinybird/tb_cli_modules/tinyunit/tinyunit.py +0 -0
  95. {tinybird-0.0.1.dev26 → tinybird-0.0.1.dev28}/tinybird/tb_cli_modules/tinyunit/tinyunit_lib.py +0 -0
  96. {tinybird-0.0.1.dev26 → tinybird-0.0.1.dev28}/tinybird/tb_cli_modules/workspace.py +0 -0
  97. {tinybird-0.0.1.dev26 → tinybird-0.0.1.dev28}/tinybird/tb_cli_modules/workspace_members.py +0 -0
  98. {tinybird-0.0.1.dev26 → tinybird-0.0.1.dev28}/tinybird.egg-info/dependency_links.txt +0 -0
  99. {tinybird-0.0.1.dev26 → tinybird-0.0.1.dev28}/tinybird.egg-info/entry_points.txt +0 -0
  100. {tinybird-0.0.1.dev26 → tinybird-0.0.1.dev28}/tinybird.egg-info/requires.txt +0 -0
  101. {tinybird-0.0.1.dev26 → tinybird-0.0.1.dev28}/tinybird.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tinybird
3
- Version: 0.0.1.dev26
3
+ Version: 0.0.1.dev28
4
4
  Summary: Tinybird Command Line Tool
5
5
  Home-page: https://www.tinybird.co/docs/cli/introduction.html
6
6
  Author: Tinybird
@@ -83,7 +83,7 @@ async def get_config(host: str, token: Optional[str], semver: Optional[str] = No
83
83
  async with aiofiles.open(config_file) as file:
84
84
  res = await file.read()
85
85
  config = json.loads(res)
86
- except IOError:
86
+ except OSError:
87
87
  pass
88
88
  except json.decoder.JSONDecodeError:
89
89
  click.echo(FeedbackManager.error_load_file_config(config_file=config_file))
@@ -524,7 +524,7 @@ class CLIGitRelease:
524
524
  self, tb_client: TinyB, current_ws: Dict[str, Any], commit: Optional[str] = None
525
525
  ) -> Dict[str, Any]:
526
526
  release = await tb_client.workspace_commit_update(
527
- current_ws["id"], self.head().commit.hexsha if not commit else commit
527
+ current_ws["id"], commit if commit else self.head().commit.hexsha
528
528
  )
529
529
  return release
530
530
 
@@ -2,6 +2,7 @@ import ast
2
2
  import decimal
3
3
  import re
4
4
  from decimal import Decimal
5
+ from typing import Callable, Dict, List, Optional, Tuple
5
6
 
6
7
  datetime64_patterns = [
7
8
  r"\d\d\d\d.\d\d.\d\d(T|\s)\d\d:\d\d:\d\d.\d\d\d",
@@ -53,7 +54,7 @@ bool_allowed_values = {
53
54
  }
54
55
 
55
56
 
56
- def is_type_datetime64(type_to_check):
57
+ def is_type_datetime64(type_to_check: str) -> bool:
57
58
  """
58
59
  >>> is_type_datetime64('DateTime64')
59
60
  True
@@ -73,7 +74,7 @@ def is_type_datetime64(type_to_check):
73
74
  return re.match(datetime64_type_pattern, type_to_check) is not None
74
75
 
75
76
 
76
- def is_type_datetime(type_to_check):
77
+ def is_type_datetime(type_to_check: str) -> bool:
77
78
  """
78
79
  >>> is_type_datetime('DateTime')
79
80
  True
@@ -89,87 +90,87 @@ def is_type_datetime(type_to_check):
89
90
  return re.match(datetime_type_pattern, type_to_check) is not None
90
91
 
91
92
 
92
- def string_test(x):
93
+ def string_test(x: str) -> bool:
93
94
  return True
94
95
 
95
96
 
96
- def date_test(x):
97
- return re.match(r"\d\d\d\d-\d\d-\d\d$", x)
97
+ def date_test(x: str) -> bool:
98
+ return re.match(r"\d\d\d\d-\d\d-\d\d$", x) is not None
98
99
 
99
100
 
100
- def datetime64_test(x):
101
+ def datetime64_test(x: str) -> bool:
101
102
  return any([re.match(p, x) for p in datetime64_patterns])
102
103
 
103
104
 
104
- def datetime_test(x):
105
+ def datetime_test(x: str) -> bool:
105
106
  return any([re.match(p, x) for p in datetime_patterns])
106
107
 
107
108
 
108
- def int_8_test(x):
109
- return re.match(intx_re, x) and -int_8_max <= int(x) < int_8_max
109
+ def int_8_test(x: str) -> bool:
110
+ return re.match(intx_re, x) is not None and -int_8_max <= int(x) < int_8_max
110
111
 
111
112
 
112
- def int16_test(x):
113
- return re.match(intx_re, x) and -int16_max <= int(x) < int16_max
113
+ def int16_test(x: str) -> bool:
114
+ return re.match(intx_re, x) is not None and -int16_max <= int(x) < int16_max
114
115
 
115
116
 
116
- def int32_test(x):
117
- return re.match(intx_re, x) and -int32_max <= int(x) < int32_max
117
+ def int32_test(x: str) -> bool:
118
+ return re.match(intx_re, x) is not None and -int32_max <= int(x) < int32_max
118
119
 
119
120
 
120
- def int64_test(x):
121
- return re.match(intx_re, x) and -int64_max <= int(x) < int64_max
121
+ def int64_test(x: str) -> bool:
122
+ return re.match(intx_re, x) is not None and -int64_max <= int(x) < int64_max
122
123
 
123
124
 
124
- def int128_test(x):
125
- return re.match(intx_re, x) and -int128_max <= int(x) < int128_max
125
+ def int128_test(x: str) -> bool:
126
+ return re.match(intx_re, x) is not None and -int128_max <= int(x) < int128_max
126
127
 
127
128
 
128
- def int256_test(x):
129
- return re.match(intx_re, x) and -int256_max <= int(x) < int256_max
129
+ def int256_test(x: str) -> bool:
130
+ return re.match(intx_re, x) is not None and -int256_max <= int(x) < int256_max
130
131
 
131
132
 
132
- def uint_8_test(x):
133
- return re.match(uintx_re, x) and 0 <= int(x) < uint_8_max
133
+ def uint_8_test(x: str) -> bool:
134
+ return re.match(uintx_re, x) is not None and 0 <= int(x) < uint_8_max
134
135
 
135
136
 
136
- def uint16_test(x):
137
- return re.match(uintx_re, x) and 0 <= int(x) < uint16_max
137
+ def uint16_test(x: str) -> bool:
138
+ return re.match(uintx_re, x) is not None and 0 <= int(x) < uint16_max
138
139
 
139
140
 
140
- def uint32_test(x):
141
- return re.match(uintx_re, x) and 0 <= int(x) < uint32_max
141
+ def uint32_test(x: str) -> bool:
142
+ return re.match(uintx_re, x) is not None and 0 <= int(x) < uint32_max
142
143
 
143
144
 
144
- def uint64_test(x):
145
- return re.match(uintx_re, x) and 0 <= int(x) < uint64_max
145
+ def uint64_test(x: str) -> bool:
146
+ return re.match(uintx_re, x) is not None and 0 <= int(x) < uint64_max
146
147
 
147
148
 
148
- def uint128_test(x):
149
- return re.match(intx_re, x) and 0 <= int(x) < uint128_max
149
+ def uint128_test(x: str) -> bool:
150
+ return re.match(intx_re, x) is not None and 0 <= int(x) < uint128_max
150
151
 
151
152
 
152
- def uint256_test(x):
153
- return re.match(intx_re, x) and 0 <= int(x) < uint256_max
153
+ def uint256_test(x: str) -> bool:
154
+ return re.match(intx_re, x) is not None and 0 <= int(x) < uint256_max
154
155
 
155
156
 
156
- def float_test(x):
157
+ def float_test(x: str) -> bool:
157
158
  return "_" not in x and type_test(x, float)
158
159
 
159
160
 
160
- def float32_test(x):
161
+ def float32_test(x: str) -> bool:
161
162
  return "_" not in x and type_test(x, float) and -float32_max <= float(x) < float32_max
162
163
 
163
164
 
164
- def float64_test(x):
165
+ def float64_test(x: str) -> bool:
165
166
  return "_" not in x and type_test(x, float) and -float64_max < float(x) < float64_max
166
167
 
167
168
 
168
- def bool_test(x):
169
+ def bool_test(x: str) -> bool:
169
170
  return x in bool_allowed_values
170
171
 
171
172
 
172
- def test_numeric_testers(fn, n):
173
+ def test_numeric_testers(fn: Callable[[str], bool], n: int) -> bool:
173
174
  """
174
175
  >>> test_numeric_testers(int32_test, (2**31)-1)
175
176
  True
@@ -192,7 +193,7 @@ def test_numeric_testers(fn, n):
192
193
  return fn(str(n))
193
194
 
194
195
 
195
- def array_test(_type_test):
196
+ def array_test(_type_test: type) -> Callable[[str], bool]:
196
197
  """
197
198
  >>> array_test(str)("['blabla']")
198
199
  True
@@ -220,7 +221,7 @@ def array_test(_type_test):
220
221
  False
221
222
  """
222
223
 
223
- def _test(x):
224
+ def _test(x: str) -> bool:
224
225
  if x[0] != "[":
225
226
  return False
226
227
  try:
@@ -234,7 +235,7 @@ def array_test(_type_test):
234
235
  return _test
235
236
 
236
237
 
237
- numbers_types = (
238
+ numbers_types: Tuple[str, ...] = (
238
239
  "Int8",
239
240
  "UInt8",
240
241
  "Int16",
@@ -253,7 +254,7 @@ numbers_types = (
253
254
 
254
255
  # Use guessers for discovering types
255
256
  # I.e., when you have to take into consideration things like float precision
256
- guessers = {
257
+ guessers: Dict[str, Callable[[str], bool]] = {
257
258
  "DateTime64": datetime64_test,
258
259
  "DateTime": datetime_test,
259
260
  "Date": date_test,
@@ -274,7 +275,7 @@ guessers = {
274
275
 
275
276
  # Use testers validating a value against a type
276
277
  # I.e., you already know the type and you need to check if a value fits there
277
- testers = {
278
+ testers: Dict[str, Callable[[str], bool]] = {
278
279
  "DateTime64": datetime64_test,
279
280
  "DateTime": datetime_test,
280
281
  "Date": date_test,
@@ -300,7 +301,7 @@ testers = {
300
301
 
301
302
 
302
303
  # Search for `canBeInsideNullable` under CH code and see which ones are true.
303
- nullable_types = [
304
+ nullable_types: List[str] = [
304
305
  "Date",
305
306
  "Date32",
306
307
  "DateTime",
@@ -340,7 +341,7 @@ nullable_types = [
340
341
  ]
341
342
 
342
343
 
343
- def type_test(i, t):
344
+ def type_test(i: str, t: type) -> bool:
344
345
  try:
345
346
  t(i)
346
347
  return True
@@ -348,7 +349,7 @@ def type_test(i, t):
348
349
  return False
349
350
 
350
351
 
351
- def parse_decimal_type(typ):
352
+ def parse_decimal_type(typ: str) -> Optional[Tuple[int, int, int]]:
352
353
  """
353
354
  >>> parse_decimal_type("decimal")
354
355
 
@@ -407,19 +408,7 @@ def parse_decimal_type(typ):
407
408
  return b, p, s
408
409
 
409
410
 
410
- def is_type_decimal(type_to_check):
411
- """
412
- >>> is_type_decimal('Decimal')
413
- True
414
- >>> is_type_decimal("Decimal(10, 2)")
415
- True
416
- >>> is_type_decimal("decimal")
417
- False
418
- """
419
- return parse_decimal_type(type_to_check) is not None
420
-
421
-
422
- def get_decimal_limits(p, s):
411
+ def get_decimal_limits(p: int, s: int) -> Tuple[Decimal, Decimal]:
423
412
  """
424
413
  >>> get_decimal_limits(1, 0)
425
414
  (Decimal('-9'), Decimal('9'))
@@ -105,10 +105,10 @@ DEFAULT_INIT_FILES_DEPLOY = {
105
105
 
106
106
 
107
107
  class SemverVersions(Enum):
108
- MAJOR: str = "major"
109
- MINOR: str = "minor"
110
- PATCH: str = "patch"
111
- CURRENT: str = "current"
108
+ MAJOR = "major"
109
+ MINOR = "minor"
110
+ PATCH = "patch"
111
+ CURRENT = "current"
112
112
 
113
113
 
114
114
  def bump_version(version: str, next_version: Optional[str]) -> str: