sassoftware / python-sasctl

Consider merging isinstance calls PYL-R1701
Anti-pattern
Major
10 months agoa year old
Consider merging these isinstance calls to isinstance(data_role, (float, int))
1587        conversion : str or int
1588            Converted data role identifier.
1589        """
1590        if isinstance(data_role, int) or isinstance(data_role, float):1591            data_role = int(data_role)
1592            if data_role == 1:
1593                conversion = "TRAIN"