(
self,
control: Optional[str] = None,
*args,
position: Optional[TypePosition] = None,
**kwargs,
)
| 2061 | ) |
| 2062 | |
| 2063 | def __init__( |
| 2064 | self, |
| 2065 | control: Optional[str] = None, |
| 2066 | *args, |
| 2067 | position: Optional[TypePosition] = None, |
| 2068 | **kwargs, |
| 2069 | ): |
| 2070 | super().__init__() |
| 2071 | if control: |
| 2072 | self._name = control |
| 2073 | |
| 2074 | if position is not None: |
| 2075 | position = position.lower() # type: ignore |
| 2076 | if position not in (args := get_args(TypePosition)): |
| 2077 | raise TypeError(f"position must be one of {args}") |
| 2078 | kwargs["position"] = position |
| 2079 | |
| 2080 | self.args = args |
| 2081 | self.options = remove_empty(**kwargs) |
nothing calls this directly
no test coverage detected