0

For instance, using the mypy library, one can specify that a function inputs a string and outputs a string, like this:

def greeting(name: str) -> str:
    return 'Hello, {}'.format(name)

In pyDatalog, one can define (say) a unary function a single value at a time, like this:

+(favoriteWords[0] == "cats")

Is there some way to specify that the argument to favoriteWords must be a single integer, and the output must be a string?

Jeffrey Benjamin Brown
  • 3,427
  • 2
  • 28
  • 40

1 Answers1

1

Unfortunately, this is currently not supported by pyDatalog.

Pierre Carbonnelle
  • 2,305
  • 19
  • 25