MCPcopy
hub / github.com/psf/black / is_stub_class

Method is_stub_class

src/black/lines.py:144–148  ·  view source on GitHub ↗

Is this line a class definition with a body consisting only of "..."?

(self)

Source from the content-addressed store, hash-verified

142
143 @property
144 def is_stub_class(self) -> bool:
145 """Is this line a class definition with a body consisting only of "..."?"""
146 return self.is_class and self.leaves[-3:] == [
147 Leaf(token.DOT, ".") for _ in range(3)
148 ]
149
150 @property
151 def is_def(self) -> bool:

Callers

nothing calls this directly

Calls 1

LeafClass · 0.90

Tested by

no test coverage detected