Skip to content
Snippets Groups Projects
Commit cbd15f57 authored by Matt Wala's avatar Matt Wala
Browse files

Add stubs for pytools

parent 7d1a7231
No related branches found
No related tags found
1 merge request!3Loopy kernel generation
recursive-include pytato *.pyi
# FIXME: Should be in pytools
from typing import TypeVar, Iterable, Optional
T = TypeVar("T")
def memoize_method(f: T) -> T: ...
def is_single_valued(it: Iterable[T]) -> bool: ...
class UniqueNameGenerator:
def __init__(self, existing_names: Optional[Iterable[str]], forced_prefix: str=""): ...
def __call__(self, based_on: str = "") -> str: ...
#! /bin/bash
export MYPYPATH=$MYPYPATH:pytato/stubs/
mypy --strict pytato
......@@ -19,7 +19,3 @@ ignore_missing_imports = True
[mypy-pyopencl]
ignore_missing_imports = True
[mypy-pytools]
ignore_missing_imports = True
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment