From f31a6f88f3c9899808286767d97529f5175cad7c Mon Sep 17 00:00:00 2001 From: Joshua Bronson Date: Wed, 1 Jun 2022 15:43:31 +0000 Subject: [PATCH] Upgrade to latest pyright (1.1.251 from 1.1.246) --- bidict/_base.py | 4 +++- requirements/lint.txt | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/bidict/_base.py b/bidict/_base.py index c7f42f6..a9140cc 100644 --- a/bidict/_base.py +++ b/bidict/_base.py @@ -410,10 +410,12 @@ class BidictBase(BidirectionalMapping[KT, VT]): ] if save_unwrite else [] return write, unwrite + __NO_KW: t.Mapping[str, t.Any] = MappingProxyType({}) + def _update( self, arg: MapOrIterItems[KT, VT], - kw: t.Mapping[str, VT] = MappingProxyType({}), + kw: t.Mapping[str, VT] = __NO_KW, *, rbof: t.Optional[bool] = None, on_dup: t.Optional[OnDup] = None, diff --git a/requirements/lint.txt b/requirements/lint.txt index 992646b..d0b68d1 100644 --- a/requirements/lint.txt +++ b/requirements/lint.txt @@ -51,7 +51,7 @@ pylint==2.14.0 # via -r requirements/lint.in pyparsing==3.0.9 # via packaging -pyright==1.1.246 +pyright==1.1.251 # via -r requirements/lint.in pytest==7.1.2 # via -r requirements/lint.in