raylib 5.5.0.0.dev3__cp310-cp310-macosx_10_13_x86_64.whl → 5.5.0.2__cp310-cp310-macosx_10_13_x86_64.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 raylib might be problematic. Click here for more details.

pyray/__init__.py CHANGED
@@ -29,9 +29,8 @@ current_module = __import__(__name__)
29
29
 
30
30
 
31
31
  def _underscore(word: str) -> str:
32
- """
33
- from inflection
34
- """
32
+ word = re.sub('2D$', '_2d', word)
33
+ word = re.sub('3D$', '_3d', word)
35
34
  word = re.sub(r"([A-Z]+)([A-Z][a-z])", r'\1_\2', word)
36
35
  word = re.sub(r"([a-z\d])([A-Z])", r'\1_\2', word)
37
36
  word = word.replace("-", "_")
@@ -136,7 +135,7 @@ def _make_struct_constructor_function(struct):
136
135
 
137
136
  for name, attr in getmembers(rl):
138
137
  # print(name, attr)
139
- uname = _underscore(name).replace('3_d', '_3d').replace('2_d', '_2d')
138
+ uname = _underscore(name)
140
139
  if isbuiltin(attr) or str(type(attr)) == "<class '_cffi_backend.__FFIFunctionWrapper'>" or str(
141
140
  type(attr)) == "<class '_cffi_backend._CDataBase'>":
142
141
  # print(attr.__call__)