@@ -539,14 +539,9 @@ def first_line_ends_in_dot(self):
539
539
if self .doc :
540
540
return self .doc .split ('\n ' )[0 ][- 1 ] == '.'
541
541
542
- @property
543
- def deprecated_with_directive (self ):
544
- return '.. deprecated:: ' in (self .summary + self .extended_summary )
545
-
546
542
@property
547
543
def deprecated (self ):
548
- return (self .name .startswith ('pandas.Panel' )
549
- or self .deprecated_with_directive )
544
+ return '.. deprecated:: ' in (self .summary + self .extended_summary )
550
545
551
546
@property
552
547
def mentioned_private_classes (self ):
@@ -674,7 +669,7 @@ def get_validation_data(doc):
674
669
errs .append (error ('GL07' ,
675
670
correct_sections = ', ' .join (correct_order )))
676
671
677
- if (doc .deprecated_with_directive
672
+ if (doc .deprecated
678
673
and not doc .extended_summary .startswith ('.. deprecated:: ' )):
679
674
errs .append (error ('GL09' ))
680
675
@@ -859,9 +854,9 @@ def validate_all(prefix, ignore_deprecated=False):
859
854
860
855
seen [shared_code_key ] = func_name
861
856
862
- # functions from introspecting Series, DataFrame and Panel
857
+ # functions from introspecting Series and DataFrame
863
858
api_item_names = set (list (zip (* api_items ))[0 ])
864
- for class_ in (pandas .Series , pandas .DataFrame , pandas . Panel ):
859
+ for class_ in (pandas .Series , pandas .DataFrame ):
865
860
for member in inspect .getmembers (class_ ):
866
861
func_name = 'pandas.{}.{}' .format (class_ .__name__ , member [0 ])
867
862
if (not member [0 ].startswith ('_' )
0 commit comments