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 Row0Wrapper(Wrapper, ABC): 

7 """ 

8 Wrapper method generator for stored procedures that are selecting 0 or 1 row. 

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 'None|dict[str,*]' 

28 

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