This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random #definitely a good thing to see at the top of a multiple-dispatch implementation! | |
import abc | |
import itertools | |
class ArgValidator: | |
@classmethod | |
def validate(cls, *args, mro_distances=None): | |
if mro_distances is None: | |
mro_distances = [] | |
#disqualify validation rules with the wrong number of arguments |