~/talk

Python 3 Types in the Wild: A Tale of Two Type Systems

Talkat DLS 2020 · 2020-11-17..11-20· [python, typescript]
links:none on file
links:none on file
links:none on file
links:none on file
links:none on file
slides:none on file

Paper compares MyPy and PyType by running both on ~70,000 GitHub repos and finds 2,678 annotated repos, of which 318 pass MyPy. MyPy treats unannotated parameters as Any and forbids locals changing type; PyType infers changing local types and accepts some patterns MyPy flags. Excluding imports MyPy reports 23,665 errors and PyType 65,938; a hand audit of sampled errors shows 49% MyPy false positives and 44% for PyType, so tools disagree frequently.

AI-written summary · about

  1. 0:00Intro
  2. 0:14Overview
  3. 0:49Python 3 & PEP484& Tools
  4. 1:42Type of an unannotated local variable
  5. 2:05Type of an unannotated function parameter
  6. 2:39Type of list and dictionary literals
  7. 3:23Return type of an unannotated function
  8. 3:56Research Questions
  9. 4:20RQI: How often and in What Ways Do Developers Use Python 3 Types?
  10. 6:37RQ2: Which Type Errors Do Developers Make?
  11. 8:23RQ3: How Do Type Errors From Different Tools Compare?
  12. 9:38Deep Semantic Errors
  13. 11:20Conclusion
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.