(self, fmt=None, depth=RandNumExpo(0.1), idnum=RandNumExpo(0.01))
| 704 | |
| 705 | class RandOID(_RandString[str]): |
| 706 | def __init__(self, fmt=None, depth=RandNumExpo(0.1), idnum=RandNumExpo(0.01)): # noqa: E501 |
| 707 | # type: (Optional[str], RandNumExpo, RandNumExpo) -> None |
| 708 | super(RandOID, self).__init__() |
| 709 | self.ori_fmt = fmt |
| 710 | self.fmt = None # type: Optional[List[Union[str, Tuple[int, ...]]]] |
| 711 | if fmt is not None: |
| 712 | self.fmt = [ |
| 713 | tuple(map(int, x.split("-"))) if "-" in x else x |
| 714 | for x in fmt.split(".") |
| 715 | ] |
| 716 | self.depth = depth |
| 717 | self.idnum = idnum |
| 718 | |
| 719 | def _command_args(self): |
| 720 | # type: () -> str |
nothing calls this directly
no test coverage detected