Skip to content
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

fix: correct type signatures according to pyright #259

Merged
merged 1 commit into from
Aug 27, 2024

Conversation

tdstein
Copy link
Collaborator

@tdstein tdstein commented Aug 27, 2024

This change fixes errors and warnings issued by Pyright.

The update method is added to the base Resource class, which fixes type-checking issues against MutableMapping.

Copy link

github-actions bot commented Aug 27, 2024

☂️ Python Coverage

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
1223 1190 97% 0% 🟢

New Files

No new covered files...

Modified Files

File Coverage Status
src/posit/init.py 100% 🟢
src/posit/connect/client.py 99% 🟢
src/posit/connect/groups.py 49% 🟢
src/posit/connect/resources.py 100% 🟢
src/posit/connect/users.py 100% 🟢
TOTAL 90% 🟢

updated for commit: 8b3a929 by action🐍

Comment on lines +38 to +40
def update(self, *args, **kwargs):
super().update(*args, **kwargs)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@zackverham - this resolves the overload signature issue you encountered.

@tdstein tdstein force-pushed the tdstein/fix-pyright-update-error branch from d70d717 to 8b3a929 Compare August 27, 2024 14:19
@tdstein tdstein merged commit 0b662ba into main Aug 27, 2024
31 checks passed
@tdstein tdstein deleted the tdstein/fix-pyright-update-error branch August 27, 2024 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants