Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use ** syntax #1

Merged
merged 2 commits into from Apr 28, 2022

Conversation

ISilviu
Copy link

@ISilviu ISilviu commented Apr 28, 2022

I'm unable to use the library on a Python 3.8.5 environment, it complaints about the following issue:

unsupported operand type(s) for |: 'dict' and 'dict'

Couldn't the library just use the ** syntax, which is supported starting from Python 3.5?

@danialkeimasi
Copy link
Member

danialkeimasi commented Apr 28, 2022

Hi Silviu,
thanks for your contribution. I believe, that the second ** operator is not necessary and you can write this instead:

{**request.COOKIES, settings.CSRF_COOKIE_NAME: get_csrf_token(request)}

Could you change this?

danialkeimasi added a commit that referenced this pull request Apr 28, 2022
@danialkeimasi danialkeimasi merged commit 7ac0d78 into QueraTeam:main Apr 28, 2022
@ISilviu ISilviu deleted the support-earlier-python-versions branch April 29, 2022 05:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants