mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-11-17 07:48:18 +01:00
Updated for type hinting
This commit is contained in:
parent
c3c41316dd
commit
91ea55c69a
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue