Hide keyboard shortcuts

Hot-keys on this page

r m x p   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

1from abc import ABC 

2 

3from pystratum_common.wrapper.Wrapper import Wrapper 

4 

5 

6class Singleton1Wrapper(Wrapper, ABC): 

7 """ 

8 Wrapper method generator for stored procedures that are selecting 1 row with one column only. 

9 """ 

10 

11 # ------------------------------------------------------------------------------------------------------------------ 

12 def _return_type_hint(self) -> str: 

13 """ 

14 Returns the return type hint of the wrapper method. 

15 

16 :rtype: str 

17 """ 

18 return 'Any' 

19 

20 # ------------------------------------------------------------------------------------------------------------------ 

21 def _get_docstring_return_type(self) -> str: 

22 """ 

23 Returns the return type of the wrapper methods the be used in the docstring. 

24 

25 :rtype: str 

26 """ 

27 return '*' 

28 

29# ----------------------------------------------------------------------------------------------------------------------