(runtime: Any)
| 1849 | |
| 1850 | |
| 1851 | def is_probably_a_function(runtime: Any) -> bool: |
| 1852 | return ( |
| 1853 | isinstance( |
| 1854 | runtime, |
| 1855 | ( |
| 1856 | types.FunctionType, |
| 1857 | types.BuiltinFunctionType, |
| 1858 | types.MethodType, |
| 1859 | types.BuiltinMethodType, |
| 1860 | ), |
| 1861 | ) |
| 1862 | or (inspect.ismethoddescriptor(runtime) and callable(runtime)) |
| 1863 | or (isinstance(runtime, types.MethodWrapperType) and callable(runtime)) |
| 1864 | ) |
| 1865 | |
| 1866 | |
| 1867 | def is_read_only_property(runtime: object) -> bool: |
no test coverage detected
searching dependent graphs…