Skip to content

Commit e95ce3c

Browse files
authored
Update layer.pyi (#1722)
* Update layer.pyi Added missing `num_feat` property in the Layer class * Removed recently added stuff from todo file
1 parent 10d8cca commit e95ce3c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

django-stubs/contrib/gis/gdal/layer.pyi

+2
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ class Layer(GDALBase):
2424
@property
2525
def name(self) -> str: ...
2626
@property
27+
def num_feat(self) -> int: ...
28+
@property
2729
def num_fields(self) -> int: ...
2830
@property
2931
def geom_type(self) -> OGRGeomType: ...

scripts/stubtest/allowlist_todo.txt

-1
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,6 @@ django.contrib.gis.gdal.envelope.OGREnvelope.MinY
627627
django.contrib.gis.gdal.geometries.LineString.coords
628628
django.contrib.gis.gdal.geometries.OGRGeometry.geojson
629629
django.contrib.gis.gdal.geometries.Polygon.exterior_ring
630-
django.contrib.gis.gdal.layer.Layer.num_feat
631630
django.contrib.gis.gdal.libgdal.err_handler
632631
django.contrib.gis.gdal.libgdal.lib_name
633632
django.contrib.gis.gdal.libgdal.lwingdal

0 commit comments

Comments
 (0)