RobertCraigie / pyright-python

Python command line wrapper for pyright, a static type checker
https://pypi.org/project/pyright/
MIT License
166 stars 22 forks source link

Remove latest version warning #302

Open RobertCraigie opened 2 hours ago

RobertCraigie commented 2 hours ago

I suspect the latest version warning has caused more pain than usefulness, for a couple of reasons.

Obviously with features like this one it's very hard, if not impossible, to actually judge how many people this has positively impacted. As such, I'm proposing removing the latest version warning log and if there is an uptick in pyright issues reported by users on an old version, we can consider adding it back in.

RobertCraigie commented 2 hours ago

cc @erictraut do you have any opinions here?

erictraut commented 2 hours ago

I don't have a strong opinion here, but I worry a bit that removing this check will make it more likely that developers will have stale copies of pyright installed and not realize it.

One option to consider... you could keep the check in place but throttle it so it isn't performed on every invocation. For example, you could throttle it to once a week. That would require you to persist information about the time the last check was performed.