+\h TdZddlmZddlmZddlmZGddedgdZy) zAdvanced options for MongoDB drivers implemented on top of PyMongo. .. seealso:: This module is compatible with both the synchronous and asynchronous PyMongo APIs. ) annotations) namedtuple)Optionalc6eZdZdZ d dfd ZxZS) DriverInfoaInfo about a driver wrapping PyMongo. The MongoDB server logs PyMongo's name, version, and platform whenever PyMongo establishes a connection. A driver implemented on top of PyMongo can add its own info to this log message. Initialize with three strings like 'MyDriver', '1.2.3', 'some platform info'. Any of these strings may be None to accept PyMongo's default. c t|||||}|jjD]2\}}| t |t rt d|dt||S)NzWrong type for DriverInfo z/ option, value must be an instance of str, not )super__new___asdictitems isinstancestr TypeErrortype)clsnameversionplatformselfkeyvalue __class__s V/root/niggaflix-v3/playground/venv/lib/python3.12/site-packages/pymongo/driver_info.pyr zDriverInfo.__new__#swwsD'8<,,...0 JC E3)?05deijoepdqr   )NN)rrr Optional[str]rrreturnr)__name__ __module__ __qualname____doc__r __classcell__)rs@rrrs9RV  !. AN    rr)rrrN)r __future__r collectionsrtypingrrrrr&s)#"L*IJr