Skip to content

Commit 742c7e8

Browse files
committed
Update deprecated bidict usages
1 parent 835ec6a commit 742c7e8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

nutshell/segment_types/icons/icons.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
class IShouldntHaveToDoThisBidict(bidict.bidict):
1717
"""Why is this not an __init__ parameter"""
18-
on_dup_val = bidict.OVERWRITE
18+
on_dup_val = bidict.DROP_OLD
1919

2020

2121
class Icon:

nutshell/segment_types/table/table.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ def generate_cardinals(d):
2727

2828

2929
class Bidict(bidict.bidict):
30-
on_dup_kv = bidict.IGNORE
31-
on_dup_val = bidict.IGNORE
30+
on_dup_kv = bidict.DROP_NEW
31+
on_dup_val = bidict.DROP_NEW
3232

3333

3434
class TableSegment:

0 commit comments

Comments
 (0)