I would use the path to the object, not to the file (which is probably meaningless for most users), i.e.:

```
Fixed bug for attribute `astropy.wcs.wcsprm.lattyp`, which was missed when refactoring from `lattype`.
```