Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix METH_VARARGS method signatures #21628

Merged
merged 6 commits into from
Nov 15, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
28 changes: 14 additions & 14 deletions src/_path_wrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const char *Py_point_in_path__doc__ =
"point_in_path(x, y, radius, path, trans)\n"
"--\n\n";

static PyObject *Py_point_in_path(PyObject *self, PyObject *args, PyObject *kwds)
static PyObject *Py_point_in_path(PyObject *self, PyObject *args)
{
double x, y, r;
py::PathIterator path;
Expand Down Expand Up @@ -64,7 +64,7 @@ const char *Py_points_in_path__doc__ =
"points_in_path(points, radius, path, trans)\n"
"--\n\n";

static PyObject *Py_points_in_path(PyObject *self, PyObject *args, PyObject *kwds)
static PyObject *Py_points_in_path(PyObject *self, PyObject *args)
{
numpy::array_view<const double, 2> points;
double r;
Expand Down Expand Up @@ -95,7 +95,7 @@ const char *Py_point_on_path__doc__ =
"point_on_path(x, y, radius, path, trans)\n"
"--\n\n";

static PyObject *Py_point_on_path(PyObject *self, PyObject *args, PyObject *kwds)
static PyObject *Py_point_on_path(PyObject *self, PyObject *args)
{
double x, y, r;
py::PathIterator path;
Expand Down Expand Up @@ -127,7 +127,7 @@ const char *Py_points_on_path__doc__ =
"points_on_path(points, radius, path, trans)\n"
"--\n\n";

static PyObject *Py_points_on_path(PyObject *self, PyObject *args, PyObject *kwds)
static PyObject *Py_points_on_path(PyObject *self, PyObject *args)
{
numpy::array_view<const double, 2> points;
double r;
Expand Down Expand Up @@ -158,7 +158,7 @@ const char *Py_get_path_extents__doc__ =
"get_path_extents(path, trans)\n"
"--\n\n";

static PyObject *Py_get_path_extents(PyObject *self, PyObject *args, PyObject *kwds)
static PyObject *Py_get_path_extents(PyObject *self, PyObject *args)
{
py::PathIterator path;
agg::trans_affine trans;
Expand Down Expand Up @@ -187,7 +187,7 @@ const char *Py_update_path_extents__doc__ =
"update_path_extents(path, trans, rect, minpos, ignore)\n"
"--\n\n";

static PyObject *Py_update_path_extents(PyObject *self, PyObject *args, PyObject *kwds)
static PyObject *Py_update_path_extents(PyObject *self, PyObject *args)
{
py::PathIterator path;
agg::trans_affine trans;
Expand Down Expand Up @@ -266,7 +266,7 @@ const char *Py_get_path_collection_extents__doc__ =
"master_transform, paths, transforms, offsets, offset_transform)\n"
"--\n\n";

static PyObject *Py_get_path_collection_extents(PyObject *self, PyObject *args, PyObject *kwds)
static PyObject *Py_get_path_collection_extents(PyObject *self, PyObject *args)
{
agg::trans_affine master_transform;
py::PathGenerator paths;
Expand Down Expand Up @@ -315,7 +315,7 @@ const char *Py_point_in_path_collection__doc__ =
"offset_trans, filled)\n"
"--\n\n";

static PyObject *Py_point_in_path_collection(PyObject *self, PyObject *args, PyObject *kwds)
static PyObject *Py_point_in_path_collection(PyObject *self, PyObject *args)
{
double x, y, radius;
agg::trans_affine master_transform;
Expand Down Expand Up @@ -370,7 +370,7 @@ const char *Py_path_in_path__doc__ =
"path_in_path(path_a, trans_a, path_b, trans_b)\n"
"--\n\n";

static PyObject *Py_path_in_path(PyObject *self, PyObject *args, PyObject *kwds)
static PyObject *Py_path_in_path(PyObject *self, PyObject *args)
{
py::PathIterator a;
agg::trans_affine atrans;
Expand Down Expand Up @@ -404,7 +404,7 @@ const char *Py_clip_path_to_rect__doc__ =
"clip_path_to_rect(path, rect, inside)\n"
"--\n\n";

static PyObject *Py_clip_path_to_rect(PyObject *self, PyObject *args, PyObject *kwds)
static PyObject *Py_clip_path_to_rect(PyObject *self, PyObject *args)
{
py::PathIterator path;
agg::rect_d rect;
Expand All @@ -431,7 +431,7 @@ const char *Py_affine_transform__doc__ =
"affine_transform(points, trans)\n"
"--\n\n";

static PyObject *Py_affine_transform(PyObject *self, PyObject *args, PyObject *kwds)
static PyObject *Py_affine_transform(PyObject *self, PyObject *args)
{
PyObject *vertices_obj;
agg::trans_affine trans;
Expand Down Expand Up @@ -472,7 +472,7 @@ const char *Py_count_bboxes_overlapping_bbox__doc__ =
"count_bboxes_overlapping_bbox(bbox, bboxes)\n"
"--\n\n";

static PyObject *Py_count_bboxes_overlapping_bbox(PyObject *self, PyObject *args, PyObject *kwds)
static PyObject *Py_count_bboxes_overlapping_bbox(PyObject *self, PyObject *args)
{
agg::rect_d bbox;
numpy::array_view<const double, 3> bboxes;
Expand Down Expand Up @@ -614,7 +614,7 @@ const char *Py_cleanup_path__doc__ =
"return_curves, sketch)\n"
"--\n\n";

static PyObject *Py_cleanup_path(PyObject *self, PyObject *args, PyObject *kwds)
static PyObject *Py_cleanup_path(PyObject *self, PyObject *args)
{
py::PathIterator path;
agg::trans_affine trans;
Expand Down Expand Up @@ -721,7 +721,7 @@ const char *Py_convert_to_string__doc__ =
" Whether the opcode comes after the values (True) or before (False).\n"
;

static PyObject *Py_convert_to_string(PyObject *self, PyObject *args, PyObject *kwds)
static PyObject *Py_convert_to_string(PyObject *self, PyObject *args)
{
py::PathIterator path;
agg::trans_affine trans;
Expand Down