Skip to content

Commit

Permalink
Implement slots for .rest classes
Browse files Browse the repository at this point in the history
  • Loading branch information
hexatester committed Jan 17, 2021
1 parent 44fbf0e commit 5838f91
Show file tree
Hide file tree
Showing 48 changed files with 48 additions and 48 deletions.
2 changes: 1 addition & 1 deletion dapodik/rest/agama.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from dapodik.base import dataclass


@dataclass(frozen=True)
@dataclass(frozen=True, slots=True)
class Agama:
agama_id: int
nama: str
Expand Down
2 changes: 1 addition & 1 deletion dapodik/rest/akreditasi.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from dapodik.base import dataclass


@dataclass(frozen=True)
@dataclass(frozen=True, slots=True)
class Akreditasi:
akreditasi_id: str
nama: str
Expand Down
2 changes: 1 addition & 1 deletion dapodik/rest/akses_internet.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from dapodik.base import dataclass


@dataclass(frozen=True)
@dataclass(frozen=True, slots=True)
class AksesInternet:
akses_internet_id: int
nama: str
Expand Down
2 changes: 1 addition & 1 deletion dapodik/rest/alat_transportasi.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from dapodik.base import dataclass


@dataclass(frozen=True)
@dataclass(frozen=True, slots=True)
class AlatTransportasi:
alat_transportasi_id: str
nama: str
Expand Down
2 changes: 1 addition & 1 deletion dapodik/rest/bank.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from dapodik.base import dataclass


@dataclass(frozen=True)
@dataclass(frozen=True, slots=True)
class Bank:
id_bank: str
nm_bank: str
Expand Down
2 changes: 1 addition & 1 deletion dapodik/rest/bentuk_lembaga.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from dapodik.base import dataclass


@dataclass(frozen=True)
@dataclass(frozen=True, slots=True)
class BentukLembaga:
bentuk_lembaga_id: str
nama: str
Expand Down
2 changes: 1 addition & 1 deletion dapodik/rest/biblio.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from dapodik.base import dataclass


@dataclass(frozen=True)
@dataclass(frozen=True, slots=True)
class Biblio:
id_biblio: str
id_freq: Optional[str]
Expand Down
2 changes: 1 addition & 1 deletion dapodik/rest/child_delete.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from dapodik.base import dataclass


@dataclass(frozen=True)
@dataclass(frozen=True, slots=True)
class ChildDelete:
child_delete_id: int
jumlah: int
Expand Down
2 changes: 1 addition & 1 deletion dapodik/rest/fasilitas_layanan.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from dapodik.base import dataclass


@dataclass(frozen=True)
@dataclass(frozen=True, slots=True)
class FasilitasLayanan:
fasilitas_layanan_id: str
nama: str
Expand Down
2 changes: 1 addition & 1 deletion dapodik/rest/gmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from dapodik.base import dataclass


@dataclass(frozen=True)
@dataclass(frozen=True, slots=True)
class Gmd:
id_gmd: str
nm_gmd: str
Expand Down
2 changes: 1 addition & 1 deletion dapodik/rest/jadwal_paud.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from dapodik.base import dataclass


@dataclass(frozen=True)
@dataclass(frozen=True, slots=True)
class JadwalPaud:
jadwal_id: str
nama: str
Expand Down
2 changes: 1 addition & 1 deletion dapodik/rest/jenis_cita.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from dapodik.base import dataclass


@dataclass(frozen=True)
@dataclass(frozen=True, slots=True)
class JenisCita:
id_cita: int
nm_cita: str
Expand Down
2 changes: 1 addition & 1 deletion dapodik/rest/jenis_gugus.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from dapodik.base import dataclass


@dataclass(frozen=True)
@dataclass(frozen=True, slots=True)
class JenisGugus:
jenis_gugus_id: str
jenis_gugus: str
Expand Down
2 changes: 1 addition & 1 deletion dapodik/rest/jenis_hapus_buku.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from dapodik.base import dataclass


@dataclass(frozen=True)
@dataclass(frozen=True, slots=True)
class JenisHapusBuku:
id_hapus_buku: str
ket_hapus_buku: str
Expand Down
2 changes: 1 addition & 1 deletion dapodik/rest/jenis_hobby.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from dapodik.base import dataclass


@dataclass(frozen=True)
@dataclass(frozen=True, slots=True)
class JenisHobby:
id_hobby: int
nm_hobby: str
Expand Down
2 changes: 1 addition & 1 deletion dapodik/rest/jenis_keluar.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from dapodik.base import dataclass


@dataclass(frozen=True)
@dataclass(frozen=True, slots=True)
class JenisKeluar:
jenis_keluar_id: str
ket_keluar: str
Expand Down
2 changes: 1 addition & 1 deletion dapodik/rest/jenis_lk.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from dapodik.base import dataclass


@dataclass(frozen=True)
@dataclass(frozen=True, slots=True)
class JenisLk:
id_jenis_lk: str
nm_jenis_lk: str
Expand Down
2 changes: 1 addition & 1 deletion dapodik/rest/jenis_pendaftaran.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from dapodik.base import dataclass


@dataclass(frozen=True)
@dataclass(frozen=True, slots=True)
class JenisPendaftaran:
jenis_pendaftaran_id: str
nama: str
Expand Down
2 changes: 1 addition & 1 deletion dapodik/rest/jenis_prasarana.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from dapodik.base import dataclass


@dataclass(frozen=True)
@dataclass(frozen=True, slots=True)
class JenisPrasarana:
jenis_prasarana_id: int
nama: str
Expand Down
2 changes: 1 addition & 1 deletion dapodik/rest/jenis_ptk.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from dapodik.base import dataclass


@dataclass(frozen=True)
@dataclass(frozen=True, slots=True)
class JenisPtk:
jenis_ptk_id: str
jenis_ptk: str
Expand Down
2 changes: 1 addition & 1 deletion dapodik/rest/jenis_rombel.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from dapodik.base import dataclass


@dataclass(frozen=True)
@dataclass(frozen=True, slots=True)
class JenisRombel:
jenis_rombel: str
nm_jenis_rombel: str
Expand Down
2 changes: 1 addition & 1 deletion dapodik/rest/jenis_sarana.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from dapodik.base import dataclass


@dataclass(frozen=True)
@dataclass(frozen=True, slots=True)
class JenisSarana:
id_hapus_buku: str
ket_hapus_buku: str
Expand Down
2 changes: 1 addition & 1 deletion dapodik/rest/jenis_tinggal.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from dapodik.base import dataclass


@dataclass(frozen=True)
@dataclass(frozen=True, slots=True)
class JenisTinggal:
jenis_tinggal_id: str
nama: str
Expand Down
2 changes: 1 addition & 1 deletion dapodik/rest/jenjang_pendidikan.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from dapodik.base import dataclass


@dataclass(frozen=True)
@dataclass(frozen=True, slots=True)
class JenjangPendidikan:
jenjang_pendidikan_id: str
nama: str
Expand Down
2 changes: 1 addition & 1 deletion dapodik/rest/jurusan.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from dapodik.base import dataclass


@dataclass(frozen=True)
@dataclass(frozen=True, slots=True)
class Jurusan:
jurusan_id: str
nama_jurusan: str
Expand Down
2 changes: 1 addition & 1 deletion dapodik/rest/kategori_tk.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from dapodik.base import dataclass


@dataclass(frozen=True)
@dataclass(frozen=True, slots=True)
class KategoriTk:
kategori_tk_id: str
nama: str
Expand Down
2 changes: 1 addition & 1 deletion dapodik/rest/keahlian_laboratorium.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from dapodik.base import dataclass


@dataclass(frozen=True)
@dataclass(frozen=True, slots=True)
class KeahlianLaboratorium:
keahlian_laboratorium_id: int
nama: str
Expand Down
2 changes: 1 addition & 1 deletion dapodik/rest/kebutuhan_khusus.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from dapodik.base import dataclass


@dataclass(frozen=True)
@dataclass(frozen=True, slots=True)
class KebutuhanKhusus:
kebutuhan_khusus_id: int
kebutuhan_khusus: str
Expand Down
2 changes: 1 addition & 1 deletion dapodik/rest/klasifikasi_lembaga.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from dapodik.base import dataclass


@dataclass(frozen=True)
@dataclass(frozen=True, slots=True)
class KlasifikasiLembaga:
klasifikasi_lembaga_id: str
nama: str
Expand Down
2 changes: 1 addition & 1 deletion dapodik/rest/kurikulum.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from dapodik.base import dataclass


@dataclass(frozen=True)
@dataclass(frozen=True, slots=True)
class Kurikulum:
kurikulum_id: int
nama_kurikulum: str
Expand Down
2 changes: 1 addition & 1 deletion dapodik/rest/lembaga_pengangkat.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from dapodik.base import dataclass


@dataclass(frozen=True)
@dataclass(frozen=True, slots=True)
class LembagaPengangkat:
lembaga_pengangkat_id: str
nama: str
Expand Down
2 changes: 1 addition & 1 deletion dapodik/rest/mata_pelajaran.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from dapodik.base import dataclass


@dataclass(frozen=True)
@dataclass(frozen=True, slots=True)
class MataPelajaran:
mata_pelajaran_id: int
nama: str
Expand Down
2 changes: 1 addition & 1 deletion dapodik/rest/mst_wilayah.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from dapodik.base import dataclass


@dataclass(frozen=True)
@dataclass(frozen=True, slots=True)
class MstWilayah:
kode_wilayah: str
nama: str
Expand Down
2 changes: 1 addition & 1 deletion dapodik/rest/pangkat_golongan.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from dapodik.base import dataclass


@dataclass(frozen=True)
@dataclass(frozen=True, slots=True)
class PangkatGolongan:
pangkat_golongan_id: str
kode: str
Expand Down
2 changes: 1 addition & 1 deletion dapodik/rest/pekerjaan.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from dapodik.base import dataclass


@dataclass(frozen=True)
@dataclass(frozen=True, slots=True)
class Pekerjaan:
pekerjaan_id: int
nama: str
Expand Down
2 changes: 1 addition & 1 deletion dapodik/rest/penghasilan.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from dapodik.base import dataclass


@dataclass(frozen=True)
@dataclass(frozen=True, slots=True)
class Penghasilan:
penghasilan_id: int
nama: str
Expand Down
2 changes: 1 addition & 1 deletion dapodik/rest/role_pengguna.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from dapodik.base import dataclass


@dataclass(frozen=True)
@dataclass(frozen=True, slots=True)
class RolePengguna:
id_role_pengguna: str
sekolah_id: str
Expand Down
2 changes: 1 addition & 1 deletion dapodik/rest/status_keaktifan_pegawai.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from dapodik.base import dataclass


@dataclass(frozen=True)
@dataclass(frozen=True, slots=True)
class StatusKeaktifanPegawai:
status_keaktifan_id: str
nama: str
Expand Down
2 changes: 1 addition & 1 deletion dapodik/rest/status_kepegawaian.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from dapodik.base import dataclass


@dataclass(frozen=True)
@dataclass(frozen=True, slots=True)
class StatusKepegawaian:
status_kepegawaian_id: int
nama: str
Expand Down
2 changes: 1 addition & 1 deletion dapodik/rest/status_kepemilikan_sarpras.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from dapodik.base import dataclass


@dataclass(frozen=True)
@dataclass(frozen=True, slots=True)
class StatusKepemilikanSarpras:
kepemilikan_sarpras_id: str
nama: str
Expand Down
2 changes: 1 addition & 1 deletion dapodik/rest/sumber_air.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from dapodik.base import dataclass


@dataclass(frozen=True)
@dataclass(frozen=True, slots=True)
class SumberAir:
sumber_air_id: str
nama: str
Expand Down
2 changes: 1 addition & 1 deletion dapodik/rest/sumber_dana_sekolah.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from dapodik.base import dataclass


@dataclass(frozen=True)
@dataclass(frozen=True, slots=True)
class SumberDanaSekolah:
sumber_dana_sekolah_id: str
nama: str
Expand Down
2 changes: 1 addition & 1 deletion dapodik/rest/sumber_gaji.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from dapodik.base import dataclass


@dataclass(frozen=True)
@dataclass(frozen=True, slots=True)
class SumberGaji:
sumber_gaji_id: str
nama: str
Expand Down
2 changes: 1 addition & 1 deletion dapodik/rest/sumber_listrik.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from dapodik.base import dataclass


@dataclass(frozen=True)
@dataclass(frozen=True, slots=True)
class SumberListrik:
sumber_listrik_id: str
nama: str
Expand Down
Loading

0 comments on commit 5838f91

Please sign in to comment.