| 246 | if TYPE_CHECKING: |
| 247 | |
| 248 | class CodecOptions(Tuple[_DocumentType], Generic[_DocumentType]): |
| 249 | document_class: Type[_DocumentType] |
| 250 | tz_aware: bool |
| 251 | uuid_representation: int |
| 252 | unicode_decode_error_handler: Optional[str] |
| 253 | tzinfo: Optional[datetime.tzinfo] |
| 254 | type_registry: TypeRegistry |
| 255 | datetime_conversion: Optional[int] |
| 256 | |
| 257 | def __new__( |
| 258 | cls: Type[CodecOptions[_DocumentType]], |
| 259 | document_class: Optional[Type[_DocumentType]] = ..., |
| 260 | tz_aware: bool = ..., |
| 261 | uuid_representation: Optional[int] = ..., |
| 262 | unicode_decode_error_handler: Optional[str] = ..., |
| 263 | tzinfo: Optional[datetime.tzinfo] = ..., |
| 264 | type_registry: Optional[TypeRegistry] = ..., |
| 265 | datetime_conversion: Optional[int] = ..., |
| 266 | ) -> CodecOptions[_DocumentType]: |
| 267 | ... |
| 268 | |
| 269 | # CodecOptions API |
| 270 | def with_options(self, **kwargs: Any) -> CodecOptions[Any]: |
| 271 | ... |
| 272 | |
| 273 | def _arguments_repr(self) -> str: |
| 274 | ... |
| 275 | |
| 276 | # NamedTuple API |
| 277 | @classmethod |
| 278 | def _make(cls, obj: Iterable[Any]) -> CodecOptions[_DocumentType]: |
| 279 | ... |
| 280 | |
| 281 | def _asdict(self) -> dict[str, Any]: |
| 282 | ... |
| 283 | |
| 284 | def _replace(self, **kwargs: Any) -> CodecOptions[_DocumentType]: |
| 285 | ... |
| 286 | |
| 287 | _source: str |
| 288 | _fields: Tuple[str] |
| 289 | |
| 290 | else: |
| 291 |
no outgoing calls