Return the full import path of the given object. >>> from scrapy import Request >>> global_object_name(Request) 'scrapy.http.request.Request' >>> global_object_name(Request.replace) 'scrapy.http.request.Request.replace'
(obj: Any)
| 272 | |
| 273 | |
| 274 | def global_object_name(obj: Any) -> str: |
| 275 | """Return the full import path of the given object. |
| 276 | |
| 277 | >>> from scrapy import Request |
| 278 | >>> global_object_name(Request) |
| 279 | 'scrapy.http.request.Request' |
| 280 | >>> global_object_name(Request.replace) |
| 281 | 'scrapy.http.request.Request.replace' |
| 282 | """ |
| 283 | return f"{obj.__module__}.{obj.__qualname__}" |
| 284 | |
| 285 | |
| 286 | if hasattr(sys, "pypy_version_info"): |
no outgoing calls
no test coverage detected