python-trio / unasync

The async transformation code.
Other
89 stars 13 forks source link

Support renaming custom classes #49

Closed sethmlarson closed 4 years ago

sethmlarson commented 4 years ago

Adds support for having custom classes named AsyncXYZ and they will be renamed to SyncXYZ. Also adds more type hints so that this new class name functionality doesn't break those type annotations.

This version of unasync works for the high-level Hip branch.

sethmlarson commented 4 years ago

I'll open a PR for that as well.

pquentin commented 4 years ago

Closing/reopening to see if the builds pick up the fix in master.

codecov[bot] commented 4 years ago

Codecov Report

Merging #49 into master will increase coverage by 0.12%. The diff coverage is 100%.

@@            Coverage Diff             @@
##           master      #49      +/-   ##
==========================================
+ Coverage   96.42%   96.55%   +0.12%     
==========================================
  Files           4        4              
  Lines         168      174       +6     
  Branches       40       44       +4     
==========================================
+ Hits          162      168       +6     
  Misses          2        2              
  Partials        4        4
Impacted Files Coverage Δ
src/unasync/__init__.py 96.51% <100%> (+0.12%) :arrow_up:
unasync/__init__.py 96.51% <0%> (+0.12%) :arrow_up:
pquentin commented 4 years ago

Thank you @sethmlarson!