Python Forum
"parameter"is possibly unbound
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
"parameter"is possibly unbound
#1
Hello everyone, I am a student who has just learned python. The following problems appeared in the program. It seems to be a basic problem, but I don’t know how to solve it. Could someone please give me some suggestions?


[Image: kVZH5ed.png]

"BS_Subcovered" is possibly unbound Pylance (reportUnboundVariable) [281,20]
"x" is possibly unbound Pylance (reportUnboundVariable) [332,15]
"y" is possibly unbound Pylance (reportUnboundVariable) [373,15]


How can I solve it? Cry


Here are some parts of my code.

[Image: fcPuj6Y.png]
[Image: zJrT9gL.png]
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [ERROR] ParamValidationError: Parameter validation failed: Invalid type for parameter gdbengo 3 10,659 Dec-26-2022, 08:48 AM
Last Post: ibreeden
  Python linter Pylance: What does "(variable): List | Unbound" mean? Drone4four 1 6,216 Oct-23-2020, 08:31 PM
Last Post: bowlofred
  scatter plot error - possibly data type - TypeError: nan is not a string chudson 1 6,492 Mar-24-2019, 11:48 AM
Last Post: chudson

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020