From 38e8cf873a4b13b03528bd5ff1655f75ca85667f Mon Sep 17 00:00:00 2001 From: ax3l Date: Thu, 30 Nov 2023 21:11:04 +0000 Subject: [PATCH] Update Stub Files --- src/amrex/space1d/amrex_1d_pybind/__init__.pyi | 16 ++++++++-------- src/amrex/space2d/amrex_2d_pybind/__init__.pyi | 16 ++++++++-------- src/amrex/space3d/amrex_3d_pybind/__init__.pyi | 16 ++++++++-------- 3 files changed, 24 insertions(+), 24 deletions(-) diff --git a/src/amrex/space1d/amrex_1d_pybind/__init__.pyi b/src/amrex/space1d/amrex_1d_pybind/__init__.pyi index d4246821..0bdf1b90 100644 --- a/src/amrex/space1d/amrex_1d_pybind/__init__.pyi +++ b/src/amrex/space1d/amrex_1d_pybind/__init__.pyi @@ -3835,15 +3835,15 @@ class Geometry(CoordSys): """ the overall size of the domain """ - def ResetDefaultCoord(self) -> None: + def ResetDefaultCoord(self: int) -> None: """ Reset default coord of Geometry class with an Array of `int` """ - def ResetDefaultPeriodicity(self) -> None: + def ResetDefaultPeriodicity(self: list[int[1]]) -> None: """ Reset default periodicity of Geometry class with an Array of `int` """ - def ResetDefaultProbDomain(self) -> None: + def ResetDefaultProbDomain(self: RealBox) -> None: """ Reset default problem domain of Geometry class with a `RealBox` """ @@ -4340,7 +4340,7 @@ class MultiFab(FabArray_FArrayBox): @typing.overload def abs(self, arg0: int, arg1: int, arg2: int) -> None: ... def average_sync(self, arg0: Periodicity) -> None: ... - def box_array(self) -> BoxArray: ... + def box_array(self: FabArrayBase) -> BoxArray: ... @typing.overload def contains_inf(self, arg0: bool) -> bool: ... @typing.overload @@ -4354,7 +4354,7 @@ class MultiFab(FabArray_FArrayBox): @typing.overload def contains_nan(self, arg0: int, arg1: int, arg2: IntVect, arg3: bool) -> bool: ... def divi(self, arg0: MultiFab, arg1: int, arg2: int, arg3: int) -> None: ... - def dm(self) -> DistributionMapping: ... + def dm(self: FabArrayBase) -> DistributionMapping: ... @typing.overload def invert(self, arg0: float, arg1: int) -> None: ... @typing.overload @@ -4404,8 +4404,8 @@ class MultiFab(FabArray_FArrayBox): def mult(self, arg0: float, arg1: Box, arg2: int) -> None: ... @typing.overload def mult(self, arg0: float, arg1: Box, arg2: int, arg3: int, arg4: int) -> None: ... - def n_comp(self) -> int: ... - def n_grow_vect(self) -> IntVect: ... + def n_comp(self: FabArrayBase) -> int: ... + def n_grow_vect(self: FabArrayBase) -> IntVect: ... @typing.overload def negate(self, arg0: int) -> None: ... @typing.overload @@ -8995,7 +8995,7 @@ class RealVect: def unit_vector() -> RealVect: ... @staticmethod def zero_vector() -> RealVect: ... - def BASISREALV(self) -> RealVect: + def BASISREALV(self: int) -> RealVect: """ return basis vector in given coordinate direction """ diff --git a/src/amrex/space2d/amrex_2d_pybind/__init__.pyi b/src/amrex/space2d/amrex_2d_pybind/__init__.pyi index 506a7115..58477cff 100644 --- a/src/amrex/space2d/amrex_2d_pybind/__init__.pyi +++ b/src/amrex/space2d/amrex_2d_pybind/__init__.pyi @@ -3835,15 +3835,15 @@ class Geometry(CoordSys): """ the overall size of the domain """ - def ResetDefaultCoord(self) -> None: + def ResetDefaultCoord(self: int) -> None: """ Reset default coord of Geometry class with an Array of `int` """ - def ResetDefaultPeriodicity(self) -> None: + def ResetDefaultPeriodicity(self: list[int[2]]) -> None: """ Reset default periodicity of Geometry class with an Array of `int` """ - def ResetDefaultProbDomain(self) -> None: + def ResetDefaultProbDomain(self: RealBox) -> None: """ Reset default problem domain of Geometry class with a `RealBox` """ @@ -4346,7 +4346,7 @@ class MultiFab(FabArray_FArrayBox): @typing.overload def abs(self, arg0: int, arg1: int, arg2: int) -> None: ... def average_sync(self, arg0: Periodicity) -> None: ... - def box_array(self) -> BoxArray: ... + def box_array(self: FabArrayBase) -> BoxArray: ... @typing.overload def contains_inf(self, arg0: bool) -> bool: ... @typing.overload @@ -4360,7 +4360,7 @@ class MultiFab(FabArray_FArrayBox): @typing.overload def contains_nan(self, arg0: int, arg1: int, arg2: IntVect, arg3: bool) -> bool: ... def divi(self, arg0: MultiFab, arg1: int, arg2: int, arg3: int) -> None: ... - def dm(self) -> DistributionMapping: ... + def dm(self: FabArrayBase) -> DistributionMapping: ... @typing.overload def invert(self, arg0: float, arg1: int) -> None: ... @typing.overload @@ -4410,8 +4410,8 @@ class MultiFab(FabArray_FArrayBox): def mult(self, arg0: float, arg1: Box, arg2: int) -> None: ... @typing.overload def mult(self, arg0: float, arg1: Box, arg2: int, arg3: int, arg4: int) -> None: ... - def n_comp(self) -> int: ... - def n_grow_vect(self) -> IntVect: ... + def n_comp(self: FabArrayBase) -> int: ... + def n_grow_vect(self: FabArrayBase) -> IntVect: ... @typing.overload def negate(self, arg0: int) -> None: ... @typing.overload @@ -9010,7 +9010,7 @@ class RealVect: def unit_vector() -> RealVect: ... @staticmethod def zero_vector() -> RealVect: ... - def BASISREALV(self) -> RealVect: + def BASISREALV(self: int) -> RealVect: """ return basis vector in given coordinate direction """ diff --git a/src/amrex/space3d/amrex_3d_pybind/__init__.pyi b/src/amrex/space3d/amrex_3d_pybind/__init__.pyi index 1fd19b76..6b5ee429 100644 --- a/src/amrex/space3d/amrex_3d_pybind/__init__.pyi +++ b/src/amrex/space3d/amrex_3d_pybind/__init__.pyi @@ -3835,15 +3835,15 @@ class Geometry(CoordSys): """ the overall size of the domain """ - def ResetDefaultCoord(self) -> None: + def ResetDefaultCoord(self: int) -> None: """ Reset default coord of Geometry class with an Array of `int` """ - def ResetDefaultPeriodicity(self) -> None: + def ResetDefaultPeriodicity(self: list[int[3]]) -> None: """ Reset default periodicity of Geometry class with an Array of `int` """ - def ResetDefaultProbDomain(self) -> None: + def ResetDefaultProbDomain(self: RealBox) -> None: """ Reset default problem domain of Geometry class with a `RealBox` """ @@ -4349,7 +4349,7 @@ class MultiFab(FabArray_FArrayBox): @typing.overload def abs(self, arg0: int, arg1: int, arg2: int) -> None: ... def average_sync(self, arg0: Periodicity) -> None: ... - def box_array(self) -> BoxArray: ... + def box_array(self: FabArrayBase) -> BoxArray: ... @typing.overload def contains_inf(self, arg0: bool) -> bool: ... @typing.overload @@ -4363,7 +4363,7 @@ class MultiFab(FabArray_FArrayBox): @typing.overload def contains_nan(self, arg0: int, arg1: int, arg2: IntVect, arg3: bool) -> bool: ... def divi(self, arg0: MultiFab, arg1: int, arg2: int, arg3: int) -> None: ... - def dm(self) -> DistributionMapping: ... + def dm(self: FabArrayBase) -> DistributionMapping: ... @typing.overload def invert(self, arg0: float, arg1: int) -> None: ... @typing.overload @@ -4413,8 +4413,8 @@ class MultiFab(FabArray_FArrayBox): def mult(self, arg0: float, arg1: Box, arg2: int) -> None: ... @typing.overload def mult(self, arg0: float, arg1: Box, arg2: int, arg3: int, arg4: int) -> None: ... - def n_comp(self) -> int: ... - def n_grow_vect(self) -> IntVect: ... + def n_comp(self: FabArrayBase) -> int: ... + def n_grow_vect(self: FabArrayBase) -> IntVect: ... @typing.overload def negate(self, arg0: int) -> None: ... @typing.overload @@ -9030,7 +9030,7 @@ class RealVect: def unit_vector() -> RealVect: ... @staticmethod def zero_vector() -> RealVect: ... - def BASISREALV(self) -> RealVect: + def BASISREALV(self: int) -> RealVect: """ return basis vector in given coordinate direction """