Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
f077f2a
add stub files
Gryfenfer97 Jul 12, 2023
0c60f08
Merge branch 'main' of https://github.com/Gryfenfer97/typeshed
Gryfenfer97 Jul 12, 2023
c3b6949
put the files at the right place
Gryfenfer97 Jul 12, 2023
531ebd9
set version
Gryfenfer97 Jul 12, 2023
98fa93c
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jul 12, 2023
f03d7aa
finish missing imports
Gryfenfer97 Jul 12, 2023
f9fcc28
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jul 12, 2023
216faba
use collections.abc instead of typing
Gryfenfer97 Jul 17, 2023
1856a43
Merge branch 'main' of https://github.com/Gryfenfer97/typeshed
Gryfenfer97 Jul 17, 2023
ef7f403
remove useless Callback type alias
Gryfenfer97 Jul 17, 2023
3418301
remove useless buffer typevar
Gryfenfer97 Jul 17, 2023
7520296
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jul 17, 2023
3556c3a
Remove useless pointer typevar
Gryfenfer97 Jul 17, 2023
722994e
forgot to change pointer to _Pointer
Gryfenfer97 Jul 17, 2023
9b476b6
remove useless Template typevar
Gryfenfer97 Jul 17, 2023
8c7f60d
Merge branch 'main' of https://github.com/Gryfenfer97/typeshed
Gryfenfer97 Jul 17, 2023
85f6925
remove file duplicated
Gryfenfer97 Jul 17, 2023
193e923
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jul 17, 2023
a2a4476
cleanup
Gryfenfer97 Jul 17, 2023
789e20c
Merge branch 'main' of https://github.com/Gryfenfer97/typeshed
Gryfenfer97 Jul 17, 2023
564331c
continue cleaning
Gryfenfer97 Jul 17, 2023
062fe0a
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jul 17, 2023
2cbcf1b
Merge branch 'main' into main
AlexWaygood Jul 20, 2023
2b002c7
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jul 20, 2023
29caf68
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jul 20, 2023
73f754c
add upstream repo
AlexWaygood Jul 22, 2023
c0c608a
Merge branch 'main' into main
JelleZijlstra Oct 2, 2024
f48cc7d
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Oct 2, 2024
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
8 changes: 8 additions & 0 deletions stubs/vtk/METADATA.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
version = "9.2.6"
upstream_repository = "https://gitlab.kitware.com/vtk/vtk"
partial_stub = true

[tool.stubtest]
ignore_missing_stub = true
# linux and darwin are equivalent
platforms = ["linux", "win32"]
1 change: 1 addition & 0 deletions stubs/vtk/vtkmodules/__init__.pyi
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__version__: str
6 changes: 6 additions & 0 deletions stubs/vtk/vtkmodules/vtkAcceleratorsVTKmCore.pyi
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
from typing import Callable, TypeVar, Union

Callback = Union[Callable[..., None], None]
_Buffer = TypeVar("_Buffer")
_Pointer = TypeVar("_Pointer")
Template = TypeVar("Template")
68 changes: 68 additions & 0 deletions stubs/vtk/vtkmodules/vtkAcceleratorsVTKmDataModel.pyi
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
from collections.abc import MutableSequence, Sequence
from typing import overload

import vtkmodules.vtkCommonCore
import vtkmodules.vtkCommonDataModel

class vtkmDataSet(vtkmodules.vtkCommonDataModel.vtkDataSet):
def ComputeBounds(self) -> None: ...
def CopyStructure(self, ds: vtkmodules.vtkCommonDataModel.vtkDataSet) -> None: ...
def DeepCopy(self, src: vtkmodules.vtkCommonDataModel.vtkDataObject) -> None: ...
@overload
def FindCell(
self,
x: MutableSequence[float],
cell: vtkmodules.vtkCommonDataModel.vtkCell,
cellId: int,
tol2: float,
subId: int,
pcoords: MutableSequence[float],
weights: MutableSequence[float],
) -> int: ...
@overload
def FindCell(
self,
x: MutableSequence[float],
cell: vtkmodules.vtkCommonDataModel.vtkCell,
gencell: vtkmodules.vtkCommonDataModel.vtkGenericCell,
cellId: int,
tol2: float,
subId: int,
pcoords: MutableSequence[float],
weights: MutableSequence[float],
) -> int: ...
def FindPoint(self, x: MutableSequence[float]) -> int: ...
def GetActualMemorySize(self) -> int: ...
@overload
def GetCell(self, cellId: int) -> vtkmodules.vtkCommonDataModel.vtkCell: ...
@overload
def GetCell(self, cellId: int, cell: vtkmodules.vtkCommonDataModel.vtkGenericCell) -> None: ...
@overload
def GetCell(self, i: int, j: int, k: int) -> vtkmodules.vtkCommonDataModel.vtkCell: ...
def GetCellBounds(self, cellId: int, bounds: MutableSequence[float]) -> None: ...
@overload
def GetCellPoints(self, cellId: int, ptIds: vtkmodules.vtkCommonCore.vtkIdList) -> None: ...
@overload
def GetCellPoints(self, cellId: int, npts: int, pts: Sequence[int], ptIds: vtkmodules.vtkCommonCore.vtkIdList) -> None: ...
def GetCellType(self, cellId: int) -> int: ...
def GetDataObjectType(self) -> int: ...
def GetMaxCellSize(self) -> int: ...
def GetNumberOfCells(self) -> int: ...
def GetNumberOfGenerationsFromBase(self, type: str) -> int: ...
@staticmethod
def GetNumberOfGenerationsFromBaseType(type: str) -> int: ...
def GetNumberOfPoints(self) -> int: ...
@overload
def GetPoint(self, ptId: int) -> tuple[float, float, float]: ...
@overload
def GetPoint(self, id: int, x: MutableSequence[float]) -> None: ...
def GetPointCells(self, ptId: int, cellIds: vtkmodules.vtkCommonCore.vtkIdList) -> None: ...
def Initialize(self) -> None: ...
def IsA(self, type: str) -> int: ...
@staticmethod
def IsTypeOf(type: str) -> int: ...
def NewInstance(self) -> vtkmDataSet: ...
@staticmethod
def SafeDownCast(o: vtkmodules.vtkCommonCore.vtkObjectBase) -> vtkmDataSet: ...
def ShallowCopy(self, src: vtkmodules.vtkCommonDataModel.vtkDataObject) -> None: ...
def Squeeze(self) -> None: ...
Loading