Fix issubclass error in update_docs
from pathlib import Path
from jinja2 import Template
-from pydantic import BaseModel
+from pydantic.main import ModelMetaclass
from qtpy.QtCore import QTimer
from qtpy.QtWidgets import QMessageBox
@@ -131,7 +131,7 @@ def create_preferences_docs():
for name, field in NapariSettings.__fields__.items():
- if not issubclass(field.type_, BaseModel):
+ if not isinstance(field.type_, ModelMetaclass):
continue
excluded = getattr(field.type_.NapariConfig, "preferences_exclude", [])
