Skip to content

Python 3.0.0 alpha the last jedtype #344

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

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
1942a59
replace == POINTZ and in {} with compatible_with(s, Point[ZM])
JamesParrott Aug 1, 2025
a460c1c
REmove sets of two enum members with identity checked against both
JamesParrott Aug 1, 2025
d0a0d56
Correct variable names and reformat
JamesParrott Aug 1, 2025
9be9b02
Reinstate a 2-tuple
JamesParrott Aug 1, 2025
6bc4580
Enum free since 1st August 2025
JamesParrott Aug 1, 2025
17a89c4
Use equality instead of identity tests with single character strings.
JamesParrott Aug 1, 2025
4846dd8
Use a single FieldType mapping
JamesParrott Aug 1, 2025
9dd687c
Ditch BBox, ZBox and MBox namedtuples
JamesParrott Aug 1, 2025
dc4511a
Remove errant dot
JamesParrott Aug 1, 2025
60265b6
Remove errant *
JamesParrott Aug 1, 2025
3e28600
Fix type checking. Lose unneccessary conversions to _Array
JamesParrott Aug 1, 2025
10703ee
Get rid of the Faux-enum
JamesParrott Aug 1, 2025
5a77db3
Revert "Get rid of the Faux-enum"
JamesParrott Aug 1, 2025
8de848d
Remove old namedtuple names from doctests
JamesParrott Aug 1, 2025
960a7b2
Restore original numerical coercion code
JamesParrott Aug 1, 2025
730da43
Fix return statement
JamesParrott Aug 1, 2025
d55f76c
Correct arg name
JamesParrott Aug 1, 2025
3b057cd
Add in entire old __dbfRecord method
JamesParrott Aug 1, 2025
38a3f41
Refactor coercer into method. Remove call to deleted helper function
JamesParrott Aug 1, 2025
141f758
Only coerce if not already int or float. Check isinstance( ,int/floa…
JamesParrott Aug 1, 2025
af9f09d
Make existing dbf record code statically typable
JamesParrott Aug 1, 2025
68fa45f
Delete unused methods
JamesParrott Aug 1, 2025
17431a2
Reformat
JamesParrott Aug 1, 2025
c40baf9
Merge branch 'python-3.0.0-alpha-the-last-jedtype' into Use-identity-…
JamesParrott Aug 1, 2025
fc53cf8
Merge pull request #14 from JamesParrott/Use-identity-not-equality
JamesParrott Aug 1, 2025
c5ba356
Copy in changes from Use-identity-not-equality that PR/Merge conflict…
JamesParrott Aug 1, 2025
5c1ca45
REstore original (correct) __zbox and __mbox implementations.
JamesParrott Aug 1, 2025
b7f4f7d
Restore old __?box method implementations, and type them.
JamesParrott Aug 1, 2025
9deff14
Initialise .m and .z on multi-point shapes not read from .shp files
JamesParrott Aug 1, 2025
5dfa9fe
Specify .m on PolylineM etc.
JamesParrott Aug 1, 2025
b456d68
Initialise .m on _HasM instances, not .z
JamesParrott Aug 1, 2025
6d17738
Fix type checking
JamesParrott Aug 1, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ and the bounding box area the shapefile covers:
>>> len(sf)
663
>>> sf.bbox
BBox(xmin=-122.515048, ymin=37.652916, xmax=-122.327622, ymax=37.863433)
(-122.515048, 37.652916, -122.327622, 37.863433)

Finally, if you would prefer to work with the entire shapefile in a different
format, you can convert all of it to a GeoJSON dictionary, although you may lose
Expand Down Expand Up @@ -1388,7 +1388,7 @@ Shapefiles containing M-values can be examined in several ways:
>>> r = shapefile.Reader('shapefiles/test/linem')

>>> r.mbox # the lower and upper bound of M-values in the shapefile
MBox(mmin=0.0, mmax=3.0)
(0.0, 3.0)

>>> r.shape(0).m # flat list of M-values
[0.0, None, 3.0, None, 0.0, None, None]
Expand Down Expand Up @@ -1421,7 +1421,7 @@ To examine a Z-type shapefile you can do:
>>> r = shapefile.Reader('shapefiles/test/linez')

>>> r.zbox # the lower and upper bound of Z-values in the shapefile
ZBox(zmin=0.0, zmax=22.0)
(0.0, 22.0)

>>> r.shape(0).z # flat list of Z-values
[18.0, 20.0, 22.0, 0.0, 0.0, 0.0, 0.0, 15.0, 13.0, 14.0]
Expand Down
Loading
Loading