Skip to content

Commit

Permalink
Use {} instead of dict as pylint complain
Browse files Browse the repository at this point in the history
  • Loading branch information
ebraminio committed Apr 18, 2024
1 parent 4e32441 commit 1862d9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aiosseclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ async def aiosseclient(
) -> AsyncGenerator[Event, None]:
'''Canonical API of the library'''
if headers is None:
headers = dict()
headers = {}
# The SSE spec requires making requests with Cache-Control: nocache
headers['Cache-Control'] = 'no-cache'

Expand Down

0 comments on commit 1862d9f

Please sign in to comment.