Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion pymbolic/geometric_algebra/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1136,7 +1136,7 @@ def xproject(
def all_grades(self) -> set[int]:
"""Return a :class:`set` of grades occurring in *self*."""

return {bits.bit_count() for bits, _coeff in self.data.items()}
return {bits.bit_count() for bits in self.data}

def get_pure_grade(self) -> int | None:
"""If *self* only has components of a single grade, return
Expand Down
2 changes: 1 addition & 1 deletion pymbolic/mapper/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@
return method(expr, *args, **kwargs)
return self.handle_unsupported_expression(expr, *args, **kwargs)
else:
return self.map_foreign(expr, *args, **kwargs)

Check warning on line 206 in pymbolic/mapper/__init__.py

View workflow job for this annotation

GitHub Actions / Pytest on Py3.10

List found in expression graph. This is deprecated and will stop working in 2025. Use tuples instead.

Check warning on line 206 in pymbolic/mapper/__init__.py

View workflow job for this annotation

GitHub Actions / Pytest on Py3.10

List found in expression graph. This is deprecated and will stop working in 2025. Use tuples instead.

Check warning on line 206 in pymbolic/mapper/__init__.py

View workflow job for this annotation

GitHub Actions / Pytest on Py3.10

List found in expression graph. This is deprecated and will stop working in 2025. Use tuples instead.

Check warning on line 206 in pymbolic/mapper/__init__.py

View workflow job for this annotation

GitHub Actions / Pytest on Py3.10

List found in expression graph. This is deprecated and will stop working in 2025. Use tuples instead.

rec = __call__
"""Identical to :meth:`__call__`, but intended for use in recursive dispatch
Expand Down Expand Up @@ -701,7 +701,7 @@
) -> ResultT:
return self.combine(
self.rec(coeff, *args, **kwargs)
for _bits, coeff in expr.data.items())
for coeff in expr.data.values())

def map_common_subexpression(self,
expr: p.CommonSubexpression, /, *args: P.args, **kwargs: P.kwargs
Expand Down
2 changes: 1 addition & 1 deletion pymbolic/mapper/dependency.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def map_call_with_kwargs(
[self.rec(child, *args, **kwargs) for child in expr.parameters]
+ [
self.rec(val, *args, **kwargs)
for _name, val in expr.kw_parameters.items()
for val in expr.kw_parameters.values()
]
)
elif self.include_calls:
Expand Down
Loading