*: replace tuple and set from typing with normal

This commit is contained in:
Jens Langhammer
2021-02-18 13:53:57 +01:00
parent ecff810021
commit e4f0613fab
4 changed files with 7 additions and 8 deletions

View File

@ -1,6 +1,5 @@
"""Docker controller"""
from time import sleep
from typing import Tuple
from django.conf import settings
from docker import DockerClient
@ -55,7 +54,7 @@ class DockerController(BaseController):
return True
return False
def _get_container(self) -> Tuple[Container, bool]:
def _get_container(self) -> tuple[Container, bool]:
container_name = f"authentik-proxy-{self.outpost.uuid.hex}"
try:
return self.client.containers.get(container_name), False