dfpyre 0.7.1__py3-none-any.whl → 0.7.2__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.

Potentially problematic release.


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

dfpyre/items.py CHANGED
@@ -363,10 +363,10 @@ def item_from_dict(item_dict: dict) -> object:
363
363
  note = _some_or(item_data.get('note'), '')
364
364
  param_type = ParameterType(PARAMETER_TYPE_LOOKUP.index(item_data['type']))
365
365
  if item_data['optional']:
366
- param = parameter(item_data['name'], param_type, item_data['plural'], True, description, note, item_from_dict(item_data['default_value']))
367
- else:
368
- param = parameter(item_data['name'], param_type, item_data['plural'], False, description, note)
369
- return param
366
+ if 'default_value' in item_data:
367
+ return parameter(item_data['name'], param_type, item_data['plural'], True, description, note, item_from_dict(item_data['default_value']))
368
+ return parameter(item_data['name'], param_type, item_data['plural'], True, description, note)
369
+ return parameter(item_data['name'], param_type, item_data['plural'], False, description, note)
370
370
  elif item_id in {'bl_tag', 'hint'}:
371
371
  return
372
372
  else:
dfpyre/pyre.py CHANGED
@@ -78,7 +78,7 @@ class CodeBlock:
78
78
  final_args = [arg.format(slot) for slot, arg in enumerate(self.args) if arg.type in VARIABLE_TYPES]
79
79
 
80
80
  # check for unrecognized name, add tags
81
- if codeblock_type is not None: # for brackets
81
+ if codeblock_type is not None and codeblock_type != 'else':
82
82
  if self.name not in CODEBLOCK_DATA[codeblock_type]:
83
83
  _warn_unrecognized_name(codeblock_type, self.name)
84
84
  elif include_tags:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: dfpyre
3
- Version: 0.7.1
3
+ Version: 0.7.2
4
4
  Summary: A package for creating and modifying code templates for the DiamondFire Minecraft server.
5
5
  Home-page: https://github.com/Amp63/pyre
6
6
  License: MIT
@@ -1,12 +1,12 @@
1
1
  dfpyre/__init__.py,sha256=apPsSxJ1Tztfl71MoORoSmDfX7LyKLYlLwOGeLQUitw,25
2
2
  dfpyre/actiondump.py,sha256=MVI1kVJBNpab882Tgqo-xtemiBN2W1_2OcopBcRupWQ,2587
3
3
  dfpyre/data/actiondump_min.json,sha256=OOSlKqWffFf9dJbY7Kj8uCRz3d6CZPMEWkSpX2-Avqs,1785020
4
- dfpyre/items.py,sha256=94-TM8NY6GyGkx4KeMGy3BUluQUcWXjGcLHKwzDfDWE,11260
5
- dfpyre/pyre.py,sha256=VFZeseR0xeMqIhI45Cm3beYXTtsgkL_iG8R7OCoQbd4,18203
4
+ dfpyre/items.py,sha256=StQnkvGAZj3mb7qG3bMyuuiRaSIttyW1Azs139e5c_4,11374
5
+ dfpyre/pyre.py,sha256=snx65yM0ysuBfV4Qe6zEKK9aw0jNmPsPgv7v8XIsSVw,18216
6
6
  dfpyre/scriptgen.py,sha256=fHjf7KVpz6iPr97Co-6BeacVVwcpVRfHd3g_ez3jnNM,5875
7
7
  dfpyre/style.py,sha256=mLW1CFvvi8_9fk8JaH10I5S4WI0YBdQIXHtI3G_4sR8,980
8
8
  dfpyre/util.py,sha256=gHIPPVD0dcLPAaN1M5EnNgxenarwlxfRKN4xno1YJHM,582
9
- dfpyre-0.7.1.dist-info/LICENSE,sha256=_vuDskB0ja2c-Fgm7Gt8Q8cO9NsLNpZAVyvmZwX7E6o,1060
10
- dfpyre-0.7.1.dist-info/METADATA,sha256=ntCHh4GSspKLS7nS-r6qLVPuO_ZOX2hf6Xd0mY-pxbg,11754
11
- dfpyre-0.7.1.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
12
- dfpyre-0.7.1.dist-info/RECORD,,
9
+ dfpyre-0.7.2.dist-info/LICENSE,sha256=_vuDskB0ja2c-Fgm7Gt8Q8cO9NsLNpZAVyvmZwX7E6o,1060
10
+ dfpyre-0.7.2.dist-info/METADATA,sha256=mmwlWG_tcoqYC9aWo_rqfT7vO5BIa1_MB5waCL9Z-HE,11754
11
+ dfpyre-0.7.2.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
12
+ dfpyre-0.7.2.dist-info/RECORD,,
File without changes