correct MP_TYPE_FLAG_NONE to MP_TYPE_FLAG_HAS_SPECIAL_ACCESSORS

also remove #include py/objproperty.h where not needed
(side effect of looking for property uses)
This commit is contained in:
Dan Halbert 2023-11-04 22:51:38 -04:00
parent 59463683dd
commit 616201109c
15 changed files with 2 additions and 15 deletions

View File

@ -27,7 +27,6 @@
#include "bindings/espulp/ULPAlarm.h"
#include "py/runtime.h"
#include "py/objproperty.h"
//| class ULPAlarm:
//| """Trigger an alarm when the ULP requests wake-up."""

View File

@ -26,7 +26,6 @@
*/
#include "py/binary.h"
#include "py/objproperty.h"
#include "py/runtime.h"
#include "py/runtime0.h"

View File

@ -31,7 +31,6 @@
#include "py/binary.h"
#include "py/mphal.h"
#include "py/nlr.h"
#include "py/objproperty.h"
#include "py/runtime.h"
#include "shared-bindings/microcontroller/Pin.h"
#include "shared-bindings/analogbufio/BufferedIn.h"

View File

@ -24,7 +24,6 @@
* THE SOFTWARE.
*/
#include "py/objproperty.h"
#include "py/runtime.h"
#include "shared-bindings/camera/Camera.h"

View File

@ -31,7 +31,6 @@
#include "shared/runtime/context_manager_helpers.h"
#include "py/binary.h"
#include "py/objproperty.h"
#include "py/runtime.h"
#include "shared-bindings/microcontroller/Pin.h"
#include "shared-bindings/busio/I2C.h"

View File

@ -420,7 +420,7 @@ STATIC MP_DEFINE_CONST_DICT(i2ctarget_i2c_target_request_locals_dict, i2ctarget_
MP_DEFINE_CONST_OBJ_TYPE(
i2ctarget_i2c_target_request_type,
MP_QSTR_I2CTargetRequest,
MP_TYPE_FLAG_NONE,
MP_TYPE_FLAG_HAS_SPECIAL_ACCESSORS,
make_new, i2ctarget_i2c_target_request_make_new,
locals_dict, &i2ctarget_i2c_target_request_locals_dict
);

View File

@ -25,7 +25,6 @@
*/
#include "py/obj.h"
#include "py/objproperty.h"
#include "py/runtime.h"
#include "shared/runtime/context_manager_helpers.h"

View File

@ -25,7 +25,6 @@
*/
#include "py/obj.h"
#include "py/objproperty.h"
#include "py/runtime.h"
#include "py/objarray.h"

View File

@ -25,7 +25,6 @@
*/
#include "py/binary.h"
#include "py/objproperty.h"
#include "py/runtime.h"
#include "py/runtime0.h"
#include "shared-bindings/memorymap/AddressRange.h"

View File

@ -25,7 +25,6 @@
*/
#include "py/binary.h"
#include "py/objproperty.h"
#include "py/runtime.h"
#include "py/runtime0.h"
#include "shared-bindings/nvm/ByteArray.h"

View File

@ -27,7 +27,6 @@
#include <stdint.h>
#include "shared/runtime/context_manager_helpers.h"
#include "py/objproperty.h"
#include "py/runtime.h"
#include "py/runtime0.h"
#include "shared-bindings/microcontroller/Pin.h"

View File

@ -30,7 +30,6 @@
#include "shared/runtime/context_manager_helpers.h"
#include "py/binary.h"
#include "py/objproperty.h"
#include "py/runtime.h"
#include "shared-bindings/microcontroller/Pin.h"
#include "shared-bindings/util.h"

View File

@ -28,7 +28,6 @@
#include <stdint.h>
#include "shared/runtime/context_manager_helpers.h"
#include "py/objproperty.h"
#include "py/runtime.h"
#include "py/runtime0.h"
#include "shared-bindings/microcontroller/Pin.h"

View File

@ -25,7 +25,6 @@
*/
#include "py/obj.h"
#include "py/objproperty.h"
#include "py/runtime.h"
#include "py/objarray.h"

View File

@ -166,7 +166,7 @@ STATIC MP_DEFINE_CONST_DICT(vectorio_rectangle_locals_dict, vectorio_rectangle_l
MP_DEFINE_CONST_OBJ_TYPE(
vectorio_rectangle_type,
MP_QSTR_Rectangle,
MP_TYPE_FLAG_NONE,
MP_TYPE_FLAG_HAS_SPECIAL_ACCESSORS,
make_new, vectorio_rectangle_make_new,
locals_dict, &vectorio_rectangle_locals_dict,
protocol, &rectangle_draw_protocol