pep584ify: use dict merge operator (#10279)

This was introduced in Python 3.9. The change makes
dict merges 'obvious' and looks cleaner.

I haven't changed `.update()` to `|=` (update operator),
as I find the former to be more readable and "obvious".
This commit is contained in:
skshetry
2024-02-03 15:58:07 +05:45
committed by GitHub
parent 68b9ecb95c
commit 2bf7bd990a
13 changed files with 21 additions and 21 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ if TYPE_CHECKING:
def issubset(subset: dict, superset: dict) -> bool:
assert superset == {**superset, **subset}
assert superset == superset | subset
return True