<- can remove this once it doesn't panic
(&self)
| 90 | impl AsRef<str> for PyStr { |
| 91 | #[track_caller] // <- can remove this once it doesn't panic |
| 92 | fn as_ref(&self) -> &str { |
| 93 | self.to_str().expect("str has surrogates") |
| 94 | } |
| 95 | } |
| 96 | |
| 97 | impl AsRef<str> for Py<PyStr> { |
no test coverage detected