neutrinoceros / wxc

A command line tool to query source code from your current Python env

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BUG: inconsistent results querying in unyt

neutrinoceros opened this issue · comments

$ wxc unyt.unyt_array
<correct path to module>

$ wxc unyt.unyt_array.unt_array
ERROR type object 'unyt.unyt_array' has no attribute 'unt_array'. Did you mean 'unit_array' ?

$ wxc unyt.unyt_array.unit_array
ERROR did not resolve source file for 'unyt.unyt_array.unit_array'

This is actually a much more general problem with inspect.getfile not being able to query properties.