src/dirbs/api/common/tac.py
def validate_tac(val: str) -> abort:
    """
    Validate TAC input argument format.

    Arguments:
        val: string value of the TAC to evaluate
    """
    if len(val) != 8:
        abort(400, 'Bad TAC format')

    try:
        int(val)
    except ValueError:
        abort(400, 'Bad Tac format')

    Validate TAC input argument format.

    Arguments:
        val: string value of the TAC to evaluate
    
Validate TAC input argument format.
Validate TAC input argument format .
def validate_tac(val: str) -> abort:
    if len(val) != 8:
        abort(400, 'Bad TAC format')
    try:
        int(val)
    except ValueError:
        abort(400, 'Bad Tac format')
def validate_tac ( val : str ) -> abort : if len ( val ) != 8 : abort ( 400 , 'Bad TAC format' ) try : int ( val ) except ValueError : abort ( 400 , 'Bad Tac format' )
Validate TAC input argument format.
Validate TAC input argument format .
"""
    Validate TAC input argument format.

    Arguments:
        val: string value of the TAC to evaluate
    """
val
str
string value of the TAC to evaluate
string value of the TAC to evaluate