A file has one or more file-regions, which are separate regions of the file containing some license information (separated by code/text/others in between), and identified by a start line and an end line.
| 148 | |
| 149 | @attr.s |
| 150 | class FileRegion: |
| 151 | """ |
| 152 | A file has one or more file-regions, which are separate regions of the file |
| 153 | containing some license information (separated by code/text/others in between), |
| 154 | and identified by a start line and an end line. |
| 155 | """ |
| 156 | path = attr.ib(type=str) |
| 157 | start_line = attr.ib(type=int) |
| 158 | end_line = attr.ib(type=int) |
| 159 | |
| 160 | def to_dict(self): |
| 161 | return attr.asdict(self, dict_factory=dict) |
| 162 | |
| 163 | |
| 164 | @attr.s(slots=True, eq=False, order=False) |
no outgoing calls
no test coverage detected