mirror of
https://github.com/davidhalter/jedi.git
synced 2026-05-20 07:19:40 +08:00
method signatures and return types of some 'set' methods, fixes davidhalter/jedi-vim#45
This commit is contained in:
@@ -142,6 +142,18 @@ class set():
|
|||||||
def copy(self):
|
def copy(self):
|
||||||
return self
|
return self
|
||||||
|
|
||||||
|
def difference(self, other):
|
||||||
|
return self - other
|
||||||
|
|
||||||
|
def intersection(self, other):
|
||||||
|
return self & other
|
||||||
|
|
||||||
|
def symetric_difference(self, other):
|
||||||
|
return self ^ other
|
||||||
|
|
||||||
|
def union(self, other):
|
||||||
|
return self | other
|
||||||
|
|
||||||
|
|
||||||
class frozenset():
|
class frozenset():
|
||||||
def __init__(self, iterable=[]):
|
def __init__(self, iterable=[]):
|
||||||
|
|||||||
Reference in New Issue
Block a user