-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DM-45209: Fix E721 error and general pyupgrade fixes #111
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #111 +/- ##
==========================================
+ Coverage 85.74% 85.87% +0.13%
==========================================
Files 46 46
Lines 3613 3604 -9
==========================================
- Hits 3098 3095 -3
+ Misses 515 509 -6 ☔ View full report in Codecov by Sentry. |
@@ -1384,9 +1365,12 @@ def saveToStream(self, outfile, root="config", skipImports=False): | |||
configType = type(self) | |||
typeString = _typeStr(configType) | |||
outfile.write(f"import {configType.__module__}\n") | |||
# We are required to write this on a single line because |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As a general comment, I have seen people reformat config .py files to make them look neater and I now worry that those will no longer be readable.
This required a change to the regex that parses the class name on read. Also changed the code to use f-string.
ForwardRef needs to explicitly call out recursive_guard in python 3.12.
Should not rely on optional daf_base.
Checklist
doc/changes