1

VSCODE PYLANCE ISSUE

While converting a string with capitalize() in python system is giving error: "capitalize is not a known member of None" Pylance(ReportOptionalMemberAccess). This error is coming for lower(), casefold() or upper()

Please suggest how to get rid of this.

enter image description here

I need to pass both the lower and upper case string as query.

  • 1
    See https://stackoverflow.com/questions/68446642/how-do-i-get-pylance-to-ignore-the-possibility-of-none – Jason Harrison Mar 07 '23 at 23:32
  • Does this answer your question? [How do I get Pylance to ignore the possibility of None?](https://stackoverflow.com/questions/68446642/how-do-i-get-pylance-to-ignore-the-possibility-of-none) – vahvero Apr 24 '23 at 07:41

0 Answers0