| 
									
										
										
										
											2021-01-05 11:22:48 +01:00
										 |  |  | # SPDX-License-Identifier: AGPL-3.0-or-later | 
					
						
							| 
									
										
										
										
											2021-01-11 18:44:39 +01:00
										 |  |  | from abc import ABC, abstractmethod | 
					
						
							| 
									
										
										
										
											2021-01-05 11:22:48 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-01-11 18:44:39 +01:00
										 |  |  | class SharedDict(ABC): | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     @abstractmethod | 
					
						
							| 
									
										
										
										
											2021-01-05 11:22:48 +01:00
										 |  |  |     def get_int(self, key): | 
					
						
							|  |  |  |         pass | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-01-11 18:44:39 +01:00
										 |  |  |     @abstractmethod | 
					
						
							| 
									
										
										
										
											2021-01-05 11:22:48 +01:00
										 |  |  |     def set_int(self, key, value): | 
					
						
							|  |  |  |         pass | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-01-11 18:44:39 +01:00
										 |  |  |     @abstractmethod | 
					
						
							| 
									
										
										
										
											2021-01-05 11:22:48 +01:00
										 |  |  |     def get_str(self, key): | 
					
						
							|  |  |  |         pass | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-01-11 18:44:39 +01:00
										 |  |  |     @abstractmethod | 
					
						
							| 
									
										
										
										
											2021-01-05 11:22:48 +01:00
										 |  |  |     def set_str(self, key, value): | 
					
						
							|  |  |  |         pass |