Pylons / pyramid

Pyramid - A Python web framework
https://trypyramid.com/
Other
3.97k stars 887 forks source link

Adaptation code structure to Pylince static analyze #3653

Closed SowingSadness closed 1 year ago

SowingSadness commented 3 years ago

I think static analyze is very important for development. I will be happy if Pylance can detecting at least main properties of framework.

https://devblogs.microsoft.com/python/announcing-pylance-fast-feature-rich-language-support-for-python-in-visual-studio-code/ image

stevepiercy commented 3 years ago

Is this issue already addressed in #2638?

SowingSadness commented 3 years ago

Is this issue already addressed in #2638?

Both issue have same propose — type hinting. But this one do not require to drop Python 2 because Pylance can detect type as by annotation as by returned value using static analyze value of. What way developers wish to use i don't know. May will they decide to use annotation way.

bouillon commented 1 year ago

+10 for this. Without type-hints pyramid has not future :-D

mmerickel commented 1 year ago

Hey I'm all for adding type hints but need someone with more experience there to support it than me! We have https://github.com/Pylons/pyramid/issues/2638 and don't support python 2 anymore so I'm closing this issue in favor of that one.