(self)
| 2319 | self.error(obj, value) |
| 2320 | |
| 2321 | def info(self) -> str: |
| 2322 | if isinstance(self.klass, str): |
| 2323 | result = add_article(self.klass) |
| 2324 | else: |
| 2325 | result = describe("a", self.klass) |
| 2326 | if self.allow_none: |
| 2327 | result += " or None" |
| 2328 | return result |
| 2329 | |
| 2330 | def instance_init(self, obj: t.Any) -> None: |
| 2331 | # we can't do this in subclass_init because that |
nothing calls this directly
no test coverage detected