@@ -40,7 +40,7 @@ def before_update(self):
4040 "Windows, and Web platforms."
4141 )
4242
43- async def get_status_async (
43+ async def get_status (
4444 self , permission : Permission , timeout : int = 10
4545 ) -> Optional [PermissionStatus ]:
4646 """
@@ -56,14 +56,14 @@ async def get_status_async(
5656 Raises:
5757 TimeoutError: If the request times out.
5858 """
59- status = await self ._invoke_method_async (
59+ status = await self ._invoke_method (
6060 method_name = "get_status" ,
6161 arguments = {"permission" : permission },
6262 timeout = timeout ,
6363 )
6464 return PermissionStatus (status ) if status is not None else None
6565
66- async def request_async (
66+ async def request (
6767 self , permission : Permission , timeout : int = 60
6868 ) -> Optional [PermissionStatus ]:
6969 """
@@ -81,14 +81,14 @@ async def request_async(
8181 Raises:
8282 TimeoutError: If the request times out.
8383 """
84- r = await self ._invoke_method_async (
84+ r = await self ._invoke_method (
8585 method_name = "request" ,
8686 arguments = {"permission" : permission },
8787 timeout = timeout ,
8888 )
8989 return PermissionStatus (r ) if r is not None else None
9090
91- async def open_app_settings_async (self , timeout : int = 10 ) -> bool :
91+ async def open_app_settings (self , timeout : int = 10 ) -> bool :
9292 """
9393 Opens the app settings page.
9494
@@ -101,7 +101,7 @@ async def open_app_settings_async(self, timeout: int = 10) -> bool:
101101 Raises:
102102 TimeoutError: If the request times out.
103103 """
104- return await self ._invoke_method_async (
104+ return await self ._invoke_method (
105105 method_name = "open_app_settings" ,
106106 timeout = timeout ,
107107 )
0 commit comments