More than 256 classes for semantic segmentation?

In the code for Semantic Segmentation in fastai v1, it looks like there is a hardcoded expectation of 255 classes (at most).

Is my interpretation here correct? If so, is there any consideration in fastai v2 to loosen this restriction?