encommon 0.22.2__py3-none-any.whl → 0.22.3__py3-none-any.whl

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.
encommon/parse/jinja2.py CHANGED
@@ -45,6 +45,7 @@ from ..utils import rgxp_match
45
45
 
46
46
 
47
47
  FILTER = Callable[..., Any]
48
+ FILTERS = dict[str, FILTER]
48
49
 
49
50
  JINJA2 = (
50
51
  r'(\{\{.+?\}\})|'
@@ -57,7 +58,7 @@ LITERAL = (
57
58
 
58
59
 
59
60
 
60
- DEFAULT: dict[str, FILTER] = {
61
+ DEFAULT: FILTERS = {
61
62
 
62
63
  # Python builtins
63
64
  'all': all,
@@ -115,7 +116,7 @@ class Jinja2:
115
116
  """
116
117
 
117
118
  __statics: DictStrAny
118
- __filters: dict[str, FILTER]
119
+ __filters: FILTERS
119
120
 
120
121
  __jinjenv: Environment
121
122
 
@@ -123,7 +124,7 @@ class Jinja2:
123
124
  def __init__(
124
125
  self,
125
126
  statics: Optional[DictStrAny] = None,
126
- filters: Optional[dict[str, FILTER]] = None,
127
+ filters: Optional[FILTERS] = None,
127
128
  ) -> None:
128
129
  """
129
130
  Initialize instance for class using provided parameters.
@@ -176,7 +177,7 @@ class Jinja2:
176
177
  @property
177
178
  def filters(
178
179
  self,
179
- ) -> dict[str, FILTER]:
180
+ ) -> FILTERS:
180
181
  """
181
182
  Return the value for the attribute from class instance.
182
183
 
encommon/version.txt CHANGED
@@ -1 +1 @@
1
- 0.22.2
1
+ 0.22.3
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: encommon
3
- Version: 0.22.2
3
+ Version: 0.22.3
4
4
  Summary: Enasis Network Common Library
5
5
  License: MIT
6
6
  Project-URL: Source, https://github.com/enasisnetwork/encommon
@@ -1,7 +1,7 @@
1
1
  encommon/__init__.py,sha256=YDGzuhpk5Gd1hq54LI0hw1NrrDvrJDrvH20TEy_0l5E,443
2
2
  encommon/conftest.py,sha256=I7Zl2cMytnA-mwSPh0rRjsU0YSlES94jQq6mocRhVUE,1884
3
3
  encommon/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
- encommon/version.txt,sha256=dt_0O2Mx5_Gk8NGxS7wcPgARkK9aftAIqxZbvDyBXhI,7
4
+ encommon/version.txt,sha256=r3a6YGG-u69k-VBftOr9MFlKWNsYOQQoXGt-j4xqdwE,7
5
5
  encommon/colors/__init__.py,sha256=XRiGimMj8oo040NO5a5ZsbsIUxaGVW4tf4xWTPWgnZY,269
6
6
  encommon/colors/color.py,sha256=rDWWL5oMx2SVSBEuRYX43u71nzMhMTZipXAHmEXwAjQ,10919
7
7
  encommon/colors/test/__init__.py,sha256=PjrnBYT0efyvbaGeNx94dm3tP3EVHUHSVs-VGeLEv5g,218
@@ -27,7 +27,7 @@ encommon/crypts/test/__init__.py,sha256=PjrnBYT0efyvbaGeNx94dm3tP3EVHUHSVs-VGeLE
27
27
  encommon/crypts/test/test_crypts.py,sha256=YKB4Kra-5CRQ8gsLLCYj2s4mjlPuibszUWClPDvMYk0,3504
28
28
  encommon/crypts/test/test_hashes.py,sha256=HEvKHTkWy6Xehh5fRHmntovGbkjWEgMsrVQCmMCBLtA,1223
29
29
  encommon/parse/__init__.py,sha256=6uV4GCm_nOYC77x2jQvTDsa0F6vBGRbCgju_HCc96zM,422
30
- encommon/parse/jinja2.py,sha256=2ZKTWjEGVHp6Dh8fkeMvuFp_AcIzCim-pA3UUf2TXWw,7067
30
+ encommon/parse/jinja2.py,sha256=ZfQN79xLwdPevozRD2aF1OpWDf0_lIWfl2o-4QBW8gY,7055
31
31
  encommon/parse/network.py,sha256=PgQ6xV6Y9KmyH0iXqQ-b88Gtkrry75Fzc-tZd-BH0ng,8771
32
32
  encommon/parse/test/__init__.py,sha256=PjrnBYT0efyvbaGeNx94dm3tP3EVHUHSVs-VGeLEv5g,218
33
33
  encommon/parse/test/test_jinja2.py,sha256=vFi8mzWPDJvFO00aMYSbjLVxctdsSvv_L19r1dVxNr8,3782
@@ -129,8 +129,8 @@ encommon/webkit/test/test_moderate.py,sha256=KitKGBtwHOQm0pXXZA5nl9MwAi2pbHOsKhM
129
129
  encommon/webkit/test/test_numeric.py,sha256=9Jqiyo-Bh572QJSyd3gqRwYTifnqqzE7_cNCmLn0CG0,3531
130
130
  encommon/webkit/test/test_statate.py,sha256=4VvmyJhsK3TSK-hq3TzkzwPkXY-GPTU_7uJf-zG_y_s,1760
131
131
  encommon/webkit/test/test_tagues.py,sha256=LQWk6rSBoBxAu-YmUOU8uWNki5RBzk5lp0dbFpySg68,1431
132
- encommon-0.22.2.dist-info/LICENSE,sha256=otnXKCtMjPlbHs0wgZ_BWULrp3g_2dWQJ6icRk9nkgg,1071
133
- encommon-0.22.2.dist-info/METADATA,sha256=zuG0K5poegv0NqJBewCnxQAeE8MGCgyeG9Kn5o8NCvs,4282
134
- encommon-0.22.2.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
135
- encommon-0.22.2.dist-info/top_level.txt,sha256=bP8q7-5tLDNm-3XPlqn_bDENfYNug5801H_xfz3BEAM,9
136
- encommon-0.22.2.dist-info/RECORD,,
132
+ encommon-0.22.3.dist-info/LICENSE,sha256=otnXKCtMjPlbHs0wgZ_BWULrp3g_2dWQJ6icRk9nkgg,1071
133
+ encommon-0.22.3.dist-info/METADATA,sha256=-_z1eC7mtGd0-t1ob5W25qrxpe0rJh5aCN4bIWPeNX4,4282
134
+ encommon-0.22.3.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
135
+ encommon-0.22.3.dist-info/top_level.txt,sha256=bP8q7-5tLDNm-3XPlqn_bDENfYNug5801H_xfz3BEAM,9
136
+ encommon-0.22.3.dist-info/RECORD,,