(self, **kwargs: str | None)
| 184 | ) |
| 185 | |
| 186 | def copy_with(self, **kwargs: str | None) -> ParseResult: |
| 187 | if not kwargs: |
| 188 | return self |
| 189 | |
| 190 | defaults = { |
| 191 | class="st">"scheme": self.scheme, |
| 192 | class="st">"authority": self.authority, |
| 193 | class="st">"path": self.path, |
| 194 | class="st">"query": self.query, |
| 195 | class="st">"fragment": self.fragment, |
| 196 | } |
| 197 | defaults.update(kwargs) |
| 198 | return urlparse(class="st">"", **defaults) |
| 199 | |
| 200 | def __str__(self) -> str: |
| 201 | authority = self.authority |