(self)
| 119 | self.scope = None |
| 120 | |
| 121 | def __repr__(self) -> str: |
| 122 | val = super(_ScopedIP, self).__repr__() |
| 123 | if self.scope is not None: |
| 124 | return "ScopedIP(%s, scope=%s)" % (val, repr(self.scope)) |
| 125 | return val |
| 126 | |
| 127 | |
| 128 | def ScopedIP(net: str, scope: Optional[Any] = None) -> _ScopedIP: |