mirror of
				https://github.com/Eledio/superfaktura-client.git
				synced 2025-10-31 08:22:32 +01:00 
			
		
		
		
	country: fix module by pylint hints
This commit is contained in:
		| @@ -1,12 +1,33 @@ | ||||
| from pprint import pprint | ||||
| """ | ||||
| Country Module. | ||||
|  | ||||
| This module provides utilities for working with countries in the SuperFaktura API. | ||||
|  | ||||
| Functions: | ||||
|     - country_list: Retrieves a list of countries. | ||||
|  | ||||
| Usage: | ||||
|     from superfaktura.utils.country import country_list | ||||
|     countries = country_list() | ||||
|     print(countries) | ||||
| """ | ||||
|  | ||||
| from superfaktura.superfaktura_api import SuperFakturaAPI | ||||
|  | ||||
|  | ||||
| def country_list(): | ||||
|     """ | ||||
|     Retrieves a list of countries. | ||||
|  | ||||
|     This function returns a list of countries that can be used in the SuperFaktura API. | ||||
|  | ||||
|     Returns: | ||||
|         - list: A list of countries. | ||||
|  | ||||
|     Usage: | ||||
|         countries = country_list() | ||||
|         print(countries) | ||||
|     """ | ||||
|     api = SuperFakturaAPI() | ||||
|     url = "countries" | ||||
|     return api.get(url) | ||||
|  | ||||
|  | ||||
| pprint(country_list()) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user