-
Notifications
You must be signed in to change notification settings - Fork 204
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
dummytools.py: F821 Undefined name "parent" #1451
Comments
parent
parent
"
parent
"
I assume that The |
Have a look in sshtools.py: Lines 78 to 80 in 8fbec2d
|
Dear Germar,
Not sure if I interpret that correct. So you mean I'm right with my assumption that
I don't get that point. That code is never used. |
No,
I don't care. I think it's easier to just copy |
Sorry, I'm confused and don't get it. |
To solve the |
I assume there is a misunderstanding. But maybe I can't see the forest for the trees. 😅
The tool is able to resolve inheritance. My point (and the problem of Python and the linter) is that the name/object I do understand that conceptually it is inherited from Line 66 in 8fbec2d
Because of that that line backintime/common/dummytools.py Line 51 in 8fbec2d
IMHO should be modified into
Am I wrong here somehow? I don't want to break anything. |
The code from dummytools.py is moved into the module docstring of "mount.py". As discussed in #1451 the purpose of this code was to be a template for developers deriving from "mount.MountControl".
@buhtz If think Since I wasn't sure myself I have used this example code to check this:
|
@buhtz You have copied the template code of backintime/common/dummytools.py Line 21 in 71c9657
Was this intentional? BTW: If "parent is a QWidget" in some cases (which I have not checked) we should refactor this with our GUI redesign since the backend logic (in |
Autsch. I'll fix that mistake. |
Always use "backintime" as identifier for syslog entries. Previously syslog (or a component behind it) silently refused the identifier because of a whitespace character in it. The name and ID of the snapshot profile is now part of the message string instead of the identifier. Even the GUI component do use "backintime" as identifier. BREAKING CHANGE: This does modify the syntax of syslog entries. Fix #1483 Close #1451
While reviewing my own PR #1448 with linters (ruff & pycodestyle) I found a possible bug. Further investigation needed.
backintime/common/dummytools.py
Line 51 in 8fbec2d
Ruff says
common/dummytools.py:51:61: F821 Undefined name "parent"
.The text was updated successfully, but these errors were encountered: