Commit graph

6 commits

Author SHA1 Message Date
Sean Breckenridge
322b267825 inspect.signature throws TypeError
if callable() fails it raises typeerror
not sure if it also raises a valueerror
2021-04-19 02:31:36 -07:00
Sean Breckenridge
fa5983613b avoid possible attribute err 2021-04-19 02:30:02 -07:00
Sean Breckenridge
b95d4586e2 guess_stats: test function name after signature
possibility that you've just passed it a
string or something which has no
__name__, wait till we know it has a signature
2021-04-19 02:22:18 -07:00
Sean Breckenridge
91f3e81573 query interactive fallback, improve guess_stats 2021-04-19 02:08:18 -07:00
Dima Gerasimov
ad177a1ccd my.pdfs: cleanup/refactor
- modernize:
  - add REQUIRES spec for pdfannots library
  - config dataclass/config stub
  - stats function
  - absolute my.core imports in anticipation of splitting core
- use 'paths' instead of 'roots' (better reflects the semantics), use get_files
  backward compatible via config migration
- properly run tests/mypy
2021-04-01 17:27:06 +01:00
Dima Gerasimov
8d6f691824 core: feature: guess module stats from typing annotations 2021-03-15 10:27:18 +00:00