From e9af837dfd2b149537a7594cf5fb94180cb4fe35 Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner Date: Sun, 31 May 2026 10:10:23 -0500 Subject: [PATCH 1/3] Fix some typos --- experiments/maxwell.py | 4 ++-- experiments/maxwell_sphere.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/experiments/maxwell.py b/experiments/maxwell.py index 73cc9fe1b..8a0d0145e 100644 --- a/experiments/maxwell.py +++ b/experiments/maxwell.py @@ -150,7 +150,7 @@ def green3m(x,y,z,source,strength,k): def dipole3e(x,y,z,source,strength,k): # - # evalaute electric and magnetic field due + # evaluate electric and magnetic field due # to monochromatic electric dipole located at "source" # with intensity "strength" @@ -161,7 +161,7 @@ def dipole3e(x,y,z,source,strength,k): def dipole3m(x,y,z,source,strength,k): # - # evalaute electric and magnetic field due + # evaluate electric and magnetic field due # to monochromatic magnetic dipole located at "source" # with intensity "strength" evec = green3m(x,y,z,source,strength,k) diff --git a/experiments/maxwell_sphere.py b/experiments/maxwell_sphere.py index 1c7220bd9..54f0d8744 100644 --- a/experiments/maxwell_sphere.py +++ b/experiments/maxwell_sphere.py @@ -146,7 +146,7 @@ def green3m(x,y,z,source,strength,k): def dipole3e(x,y,z,source,strength,k): # - # evalaute electric and magnetic field due + # evaluate electric and magnetic field due # to monochromatic electric dipole located at "source" # with intensity "strength" @@ -159,7 +159,7 @@ def dipole3e(x,y,z,source,strength,k): def dipole3m(x,y,z,source,strength,k): # - # evalaute electric and magnetic field due + # evaluate electric and magnetic field due # to monochromatic magnetic dipole located at "source" # with intensity "strength" evec = green3m(x,y,z,source,strength,k) From 56ba5140151391e4ca425842ac84d00fc05370a5 Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner Date: Sun, 31 May 2026 10:10:51 -0500 Subject: [PATCH 2/3] Ruff: clean up doubled typing imports --- pytential/source.py | 1 - pytential/symbolic/execution.py | 1 - pytential/symbolic/matrix.py | 4 ---- pytential/target.py | 2 -- 4 files changed, 8 deletions(-) diff --git a/pytential/source.py b/pytential/source.py index 0c11a02ed..b0329dcc7 100644 --- a/pytential/source.py +++ b/pytential/source.py @@ -38,7 +38,6 @@ ) from meshmode.dof_array import DOFArray from pytools import T, memoize_in -from sumpy.kernel import Kernel if TYPE_CHECKING: diff --git a/pytential/symbolic/execution.py b/pytential/symbolic/execution.py index 25cdeb1f6..e71389f7e 100644 --- a/pytential/symbolic/execution.py +++ b/pytential/symbolic/execution.py @@ -33,7 +33,6 @@ import numpy as np from typing_extensions import override -import pymbolic.primitives as p from arraycontext import ( ArrayContext, ArrayOrContainer, diff --git a/pytential/symbolic/matrix.py b/pytential/symbolic/matrix.py index 66d47c8e0..6a84ad667 100644 --- a/pytential/symbolic/matrix.py +++ b/pytential/symbolic/matrix.py @@ -63,10 +63,6 @@ ) from pytools import memoize_method -from pytential.collection import GeometryCollection -from pytential.linalg.utils import TargetAndSourceClusterList -from pytential.symbolic.primitives import Variable - if TYPE_CHECKING: from collections.abc import Sequence diff --git a/pytential/target.py b/pytential/target.py index eb7bc0886..57be740d8 100644 --- a/pytential/target.py +++ b/pytential/target.py @@ -44,9 +44,7 @@ from abc import ABC, abstractmethod from typing import TYPE_CHECKING, TypeAlias -from arraycontext import Array from meshmode.discretization import Discretization -from pytools import T if TYPE_CHECKING: From 55de7aec6cffd0645dd5ada5891deb1f1176b8e1 Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner Date: Sun, 31 May 2026 10:11:15 -0500 Subject: [PATCH 3/3] Update baseline --- .basedpyright/baseline.json | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.basedpyright/baseline.json b/.basedpyright/baseline.json index 333292fcb..fa6e5b40f 100644 --- a/.basedpyright/baseline.json +++ b/.basedpyright/baseline.json @@ -35937,6 +35937,22 @@ "lineCount": 1 } }, + { + "code": "reportOperatorIssue", + "range": { + "startColumn": 51, + "endColumn": 71, + "lineCount": 1 + } + }, + { + "code": "reportUnknownArgumentType", + "range": { + "startColumn": 51, + "endColumn": 71, + "lineCount": 1 + } + }, { "code": "reportUnknownArgumentType", "range": {