mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-13 10:08:27 +08:00
8482b1030b
Looked at https://github.com/requests/requests/blob/master/requests/structures.py. The "data" argument to the CaseInsensitiveDict constructor is passed as is to .update(), so I accept the same argument types as MutableMapping.update. LookupDict is strangely named and implemented but the point seems to be that you setattr its keys, and then can access them with both attribute access and subscripting. See its usage in https://github.com/requests/requests/blob/d1fb1a29ab949223d8d64797e0fcc9a7d2690483/requests/status_codes.py#L102.