Instagram / LibCST

A concrete syntax tree parser and serializer library for Python that preserves many aspects of Python's abstract syntax tree
https://libcst.readthedocs.io/
Other
1.56k stars 192 forks source link

Remove uses of `# pyre-placeholder-stub` #1174

Closed grievejia closed 4 months ago

grievejia commented 4 months ago

Summary

# pyre-placeholder-stub is a deprecated and non-standard-compliant feature in Pyre. This PR replaces it with the getattr-Any pattern and suppress all downstream type errors.

Test Plan

hatch run pyre

codecov[bot] commented 4 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 91.26%. Comparing base (72701e4) to head (6752172).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #1174 +/- ## ======================================= Coverage 91.26% 91.26% ======================================= Files 261 261 Lines 26877 26877 ======================================= Hits 24529 24529 Misses 2348 2348 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.