Updated for type hinting

This commit is contained in:
Dimitris Zlatanidis 2023-04-26 09:41:18 +03:00
parent c3c41316dd
commit 91ea55c69a

View file

@ -176,12 +176,12 @@ class Utilities(Configs):
return packages
def blacklist_pattern(self, name):
def blacklist_pattern(self, name: str) -> bool:
""" This module provides support for Unix shell-style wildcards. """
if [black for black in self.black.packages() if fnmatch.fnmatch(name, black)]:
return True
def repository_name(self, data):
def repository_name(self, data: dict) -> str:
""" Get the binary repository name from the repository data. """
try:
# Binary repository name