Sigurd Ljødal

Results 9 issues of Sigurd Ljødal

Starting with #1038 `user_passes_test` is typed to accept `AbstractBaseUser | AnonymousUser`. While technically correct it would be great if the `mypy` plugin could update this to be the actual model...

# Bug report ## What's wrong On the latest master mypy will crash when writing the cache when checking certain files. This does not happen when checking the full project,...

bug

# Bug report ## What's wrong Mypy crashes with an assertion error if a variable has a union type of two different, custom querysets. I have a branch with a...

bug

**Crash Report** Using a dynamically created class in a match statement produces a warning about it not being a type. If the match also has `*rest` clause mypy crashes. **Traceback**...

crash
topic-match-statement

Hi, I'm looking into creating a rule telling users not to use a certain base class, but rather use a different one. Providing an autofix for this would require changing...

## Summary This can return bytes if the string is a bytestring, e.g.: In [1]: import libcst as cst In [2]: cst.parse_expression('b"foo"').evaluated_value Out[2]: b'foo'

CLA Signed

This treats the get_user_model function as a dynamic class factory in the Django plugin, which means that we can use it for type stubs etc and get the actually configured...

Add a transformer that updates the signature of `user_passes_test` to reflect `settings.AUTH_USER_MODEL`. ## Related issues Fixes #1058

This adds a sixth value to the tuple returned by the extractor functions which should be a set of flags. Which flags should be applied to a message should be...