Maxim Masiutin

Results 69 comments of Maxim Masiutin

My goal is to have a fully automated toolkit to test third-party Python web applications with a minimum of preliminary steps, preferably in one click. Since most Django applications don’t...

Thank you for your suggestions! 1. I first made a calls.py file to call all the view functions explicitly. Pyre reveal_type correctly revealed the types only in the calls.py file...

I have debugged the following code: ``` query = request.GET.get('query', '') response = HttpResponse(f"Query: {query}") ``` I have further updated the Django .pysa and .pyi files for compatibility with the...

The problem is in the following definition in the django_sources_sinks.pysa file: ``` def django.http.response.HttpResponse.__init__( self, content: TaintSink[ReturnedToUser], *args: TaintSink[ReturnedToUser], **kwargs: TaintSink[ReturnedToUser], ): ... ``` The taint sink "ReturnedToUser" usually means,...

> > Is there a way for Pyre to read somehow .pyi files for the code that I analyze, not just for the third-party modules? > > Yes, see https://pyre-check.org/docs/types-in-python#when-source-code-is-not-available....

I've just made some updates for the Django stubs and it finally correctly reveals a type within the https://github.com/red-and-black/DjangoGoat (branch called "broken"): ``` authentication.views:60:12-60:23: Revealed type for django.contrib.auth.models.User.objects: django.db.models.manager.Manager authentication.views:32:12-32:23:...

I have created a pull request at https://github.com/typeddjango/django-stubs/pull/601

The developers of typeddjango/django-stubs have approved the pull request https://github.com/typeddjango/django-stubs/pull/601 , but not yet https://github.com/typeddjango/django-stubs/pull/598

Thank you, I will take the https://github.com/typeddjango/django-stubs file. However, an updated .pysa file for Django is still needed, because in the latest version of Django, "pyra analyze" gives errors unless...