File tree Expand file tree Collapse file tree 7 files changed +9180
-8586
lines changed Expand file tree Collapse file tree 7 files changed +9180
-8586
lines changed Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ def ctype_to_python_type(t):
79
79
80
80
81
81
print ("""from typing import Any
82
-
82
+ from warnings import deprecated
83
83
import _cffi_backend # type: ignore
84
84
85
85
ffi: _cffi_backend.FFI
@@ -119,8 +119,11 @@ def ctype_to_python_type(t):
119
119
if 'description' in json_object :
120
120
description = json_object ['description' ]
121
121
122
- print (
123
- f'def { uname } ({ sig } ) -> { ctype_to_python_type (return_type )} :\n """{ description } """\n ...' )
122
+ if 'physics' in uname :
123
+ print ('@deprecated("Raylib no longer recommends the use of Physac library")' )
124
+ print (f'def { uname } ({ sig } ) -> { ctype_to_python_type (return_type )} :' )
125
+ print (f' """{ description } ."""' )
126
+ print (f' ...' )
124
127
125
128
elif str (type (attr )) == "<class '_cffi_backend._CDataBase'>" :
126
129
return_type = ffi .typeof (attr ).result .cname
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ def ctype_to_python_type(t):
69
69
70
70
71
71
print ("""from typing import Any
72
-
72
+ from warnings import deprecated
73
73
import _cffi_backend # type: ignore
74
74
75
75
ffi: _cffi_backend.FFI
@@ -114,8 +114,12 @@ class struct: ...
114
114
if 'description' in json_object :
115
115
description = json_object ['description' ]
116
116
117
- print (
118
- f'def { uname } ({ sig } ) -> { ctype_to_python_type (return_type )} :\n """{ description } """\n ...' )
117
+ if 'Physics' in uname :
118
+ print ('@deprecated("Raylib no longer recommends the use of Physac library")' )
119
+ print (f'def { uname } ({ sig } ) -> { ctype_to_python_type (return_type )} :' )
120
+ print (f' """{ description } ."""' )
121
+ print (f' ...' )
122
+
119
123
120
124
elif str (type (attr )) == "<class '_cffi_backend._CDataBase'>" :
121
125
return_type = ffi .typeof (attr ).result .cname
Load Diff Large diffs are not rendered by default.
Load Diff Large diffs are not rendered by default.
You can’t perform that action at this time.
0 commit comments