Correctly type hint swallow_and_print_errors decorator

This commit is contained in:
I-Al-Istannen
2020-05-12 21:02:41 +02:00
parent 072c6630bf
commit 03a801eecc
2 changed files with 8 additions and 4 deletions

View File

@@ -2,6 +2,7 @@ import argparse
from pathlib import Path, PurePath
from PFERD import Pferd
from PFERD.ilias import IliasDirectoryType
from PFERD.transform import (attempt, do, glob, keep, move, move_dir,
optionally, re_move, re_rename)
@@ -48,7 +49,7 @@ tf_ss_2020_pg = attempt(
)
def df_ss_2020_or1(path: PurePath) -> bool:
def df_ss_2020_or1(path: PurePath, _type: IliasDirectoryType) -> bool:
if glob("Tutorien/")(path):
return True
if glob("Tutorien/Tutorium 10, dienstags 15:45 Uhr/")(path):