omnata-plugin-runtime 0.5.7a140__tar.gz → 0.5.7a141__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: omnata-plugin-runtime
3
- Version: 0.5.7a140
3
+ Version: 0.5.7a141
4
4
  Summary: Classes and common runtime components for building and running Omnata Plugins
5
5
  Author: James Weakley
6
6
  Author-email: james.weakley@omnata.com
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "omnata-plugin-runtime"
3
- version = "0.5.7-a140"
3
+ version = "0.5.7-a141"
4
4
  description = "Classes and common runtime components for building and running Omnata Plugins"
5
5
  authors = ["James Weakley <james.weakley@omnata.com>"]
6
6
  readme = "README.md"
@@ -6,6 +6,7 @@ Includes data container classes and defines the contract for a plugin.
6
6
  from __future__ import annotations
7
7
  from inspect import signature
8
8
  import sys
9
+ from types import FunctionType
9
10
  from typing import Union
10
11
  if tuple(sys.version_info[:2]) >= (3, 9):
11
12
  # Python 3.9 and above
@@ -2317,7 +2318,7 @@ def consumer_udtf(
2317
2318
 
2318
2319
  return class_decorator
2319
2320
 
2320
- def find_consumer_udtf_classes(path:str = '.'):
2321
+ def find_consumer_udtf_classes(path:str = '.') -> List[type]:
2321
2322
  """
2322
2323
  Finds all classes in the specified directory which have the 'consumer_udtf' decorator applied
2323
2324
  """
@@ -2393,7 +2394,7 @@ def consumer_udf(
2393
2394
 
2394
2395
  return decorator
2395
2396
 
2396
- def find_consumer_udf_functions(path:str = '.'):
2397
+ def find_consumer_udf_functions(path:str = '.') -> List[function]:
2397
2398
  """
2398
2399
  Finds all functions in the specified directory which have the 'consumer_udf' decorator applied
2399
2400
  """