Skip to content
Snippets Groups Projects

Add typeannotations and docstring for KernelWrapper

Merged Stephan Seitz requested to merge seitz/pystencils:kernel-wrapper-typeannotations into master
Compare and
2 files
+ 9
8
Preferences
Compare changes
Files
2
"""
Light-weight wrapper around a compiled kernel
"""
import pystencils
class KernelWrapper:
def __init__(self, kernel, parameters, ast_node):
"""
Light-weight wrapper around a compiled kernel.
Can be called while still providing access to underlying AST.
"""
def __init__(self, kernel, parameters, ast_node: pystencils.astnodes.KernelFunction):
self.kernel = kernel
self.parameters = parameters
self.ast = ast_node