Skip to content

Fix createNote to return Note instead of Node#185

Open
caleb-walz12 wants to merge 1 commit intokiwiz:mainfrom
caleb-walz12:main
Open

Fix createNote to return Note instead of Node#185
caleb-walz12 wants to merge 1 commit intokiwiz:mainfrom
caleb-walz12:main

Conversation

@caleb-walz12
Copy link
Copy Markdown

Consider the following:

note = keep.createNote('title', 'text') note.pinned = True

This shows a warning that 'Node' object has no attribute 'pinned'. The object returned from createNote is actually a Note and has attribute pinned, so no error is raised. However, createNote should indicate that it returns a Note to avoid this warning.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant