8000 Combine iter records range into iter records by JamesParrott · Pull Request #310 · GeospatialPython/pyshp · GitHub
[go: up one dir, main page]

Skip to content

Combine iter records range into iter records #310

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
merged 15 commits into from
Oct 18, 2024
Merged
Changes from 1 commit
Commits
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
Prev Previous commit
Next Next commit
Let Ruff adjust code style (lead with ands, instead of trailing).
  • Loading branch information
JamesParrott committed Oct 17, 2024
commit 74cf6dd96ef7c7d1fb4b64b14318eef03342ddc4
16 changes: 7 additions & 9 deletions shapefile.py
Original file line number Diff line number Diff line change
Expand Up @@ -855,15 +855,13 @@ def __dir__(self):
return default + fnames

def __eq__(self, other):
return (isinstance(other, self.__class__) and
self.__field_positions == other.__field_positions and
self.oid == other.oid and
len(self) == len(other) and
all(val_self == val_other
for val_self, val_other in izip(self, other)
)
)

return (
isinstance(other, self.__class__)
and self.__field_positions == other.__field_positions
and self.oid == other.oid
and len(self) == len(other)
and all(val_self == val_other for val_self, val_other in izip(self, other))
)


class ShapeRecord(object):
Expand Down
0