Skip to content

Commit 0d8611c

Browse files
committed
Suppress spurious errors in pyclbr when it encounters properties and Union in the module.
1 parent fe8aea5 commit 0d8611c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Lib/test/test_pyclbr.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,8 @@ def test_others(self):
224224
cm('sre_parse', ignore=('dump', 'groups', 'pos')) # from sre_constants import *; property
225225
cm(
226226
'pdb',
227-
ignore=('ModuleTarget',), # cached_property
227+
# pyclbr does not handle elegantly `typing` or properties
228+
ignore=('Union', 'ModuleTarget', 'ScriptTarget'),
228229
)
229230
cm('pydoc', ignore=('input', 'output',)) # properties
230231

0 commit comments

Comments
 (0)