Skip to content

Conversation

Kludex
Copy link
Member

@Kludex Kludex commented Mar 19, 2025

There are conceptually wrong types in mcp/types.py that I can't solve easily.

@dsp-ant dsp-ant force-pushed the add-strict-mode-pyright branch from 30149e3 to 96377b0 Compare March 19, 2025 09:42
@Kludex
Copy link
Member Author

Kludex commented Mar 19, 2025

I have a fix locally, I need to push it.

@Kludex Kludex requested a review from dsp-ant March 20, 2025 08:10
<!-- omit in toc -->
## Table of Contents

- [Overview](#overview)
Copy link
Member Author

Choose a reason for hiding this comment

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

My IDE "fixes" this... It has been like this for years and I never bothered to fix it... If it's not important, I'd appreciate it if we just ignore this.

Copy link
Member

@dsp-ant dsp-ant left a comment

Choose a reason for hiding this comment

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

Thank you

"""
new_data = data.copy() # Shallow copy
for field_name, field_info in self.arg_model.model_fields.items():
for field_name, _field_info in self.arg_model.model_fields.items():
Copy link
Member

Choose a reason for hiding this comment

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

sounds like we can make this

Suggested change
for field_name, _field_info in self.arg_model.model_fields.items():
for field_name in self.arg_model.model_fields.keys():

@dsp-ant dsp-ant merged commit ae77772 into main Mar 20, 2025
6 checks passed
@dsp-ant dsp-ant deleted the add-strict-mode-pyright branch March 20, 2025 09:13
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