Upgrade to Pro — share decks privately, control downloads, hide ads and more …

VS codeとPyrightで始める型のある生活

tenajima
September 17, 2019

VS codeとPyrightで始める型のある生活

VS codeとPyrightを使ってPythonでもふんわりと型のありがたみを受けよう

tenajima

September 17, 2019
Tweet

More Decks by tenajima

Other Decks in Programming

Transcript

  1. 74DPEFͱ1ZSJHIUͰ࢝ΊΔ
    ܕͷ͋Δੜ׆

    View full-size slide

  2. ࣗݾ঺հ
    w 'SJOHFגࣜձࣾ
    w 6OJQPTσʔλαΠΤϯςΟετ
    w ދౘ
    :VUP.J[VUBOJ
    !UFOBKJNB

    View full-size slide

  3. 1ZUIPOʹ͓͚Δܕʹ͍ͭͯ
    w 5ZQF)JOUT
    w 1&1
    w ม਺એݴ࣌ ؔ਺એݴ࣌ʹܕΞϊςʔγϣϯΛ͚ͭΔ͜ͱ͕

    Ͱ͖Δ
    w ࣮ߦ࣌ʹνΣοΫ͞ΕΔΘ͚Ͱ͸ͳ͍ͷͰίϝϯτͷ֦ு
    w 5ZQF)JOUTͷ໨తͱͯ͠ॏཁͳ΋ͷʹ ੩తղੳؚ͕·Ε͍ͯΔ
    w ੩తܕνΣοΧʔ΍ *%&ͷิ׬ ϦϑΝΫλϦϯάͷͨΊͷ

    ඪ४తه๏ͷఏڙ
    w 1ZUIPO͸ґવͱͯ͠ಈతܕ෇͚ݴޠͳͷͰ 5ZQF)JOUTΛ

    ඞਢʹ͢Δͭ΋Γ͸ͳ͍

    View full-size slide

  4. 1ZSJHIUͱ͸
    w ࠓ೥ͷ݄ʹެ։͞Εͨ1ZUIPO༻ͷ੩తܕνΣοΧʔ
    w NBEFCZ.JDSPTPGU
    w 74DPEFͷ֦ுػೳ͕༻ҙ͞Ε͍ͯͯ؆୯ʹಋೖͰ͖Δ
    w DPNNBOEMJOFUPPM΋͋Δ OQN͔ΒΠϯετʔϧ

    w 5ZQF4DSJQUͰॻ͔Ε/PEFKTͰಈ͍͍ͯΔͷͰ1ZUIPO؀
    ڥʹґଘ͍ͯ͠ͳ͍
    w DPOpHϑΝΠϧʹΑͬͯࡉ͔͘ઃఆΛܾΊΔ͜ͱ͕Ͱ͖Δ
    w 1&1 UZQFIJOUT
    1&1 WBSJBCMFBOOPUBUJPO

    1&1 TUSVDUVSBMTVCUZQJOH
    Λαϙʔτ͍ͯ͠Δ
    1ZSJHIUͷHJUIVCˠ

    View full-size slide

  5. 1ZSJHIUΛ࢖͏ͱͲ͏ͳΔ͔
    w ࡶͳDPOpHΛ࡞Δ
    w DPOpHͷϓϩύςΟΛಡΈࠐΈ͍ͨ
    ࢖༻લ ࢖༻ޙ

    View full-size slide

  6. 1ZSJHIUΛ࢖͏ͱͲ͏ͳΔ͔
    w ܕ͕ҧ͏΋ͷಉ࢜ͷԋࢉʹରౖͯͬͯ͘͠ΕΔ
    w ܕʹఆٛ͞Ε͍ͯͳ͍ཁૉͷΞΫηεʹରౖͯͬͯ͘͠Ε
    Δ
    w ܕͷఆٛͷ֎Ͱ࡞ΒΕΔཁૉʹରౖͯͬͯ͘͠ΕΔ
    w ༨ܭͳ࣮ߦ࣌ΤϥʔΛະવʹ๷͙͜ͱ͕Ͱ͖Δ
    w ༧ظ͠ͳ͍ܕͷมߋΛ๷͙͜ͱͰόάΛະવʹ๷͛Δ

    PSಛఆ͕ૣ͘ͳΔ
    w ౖΒΕͯ΋࣮ߦ͸Ͱ͖ΔͷͰ͏·͘෇͖߹͍ͬͯ͘ඞཁ
    ͸͋Δ

    View full-size slide

  7. 74DPEFͱ1ZSJHIUͷ
    ಋೖํ๏ʹ͍ͭͯ
    w 74DPEFΛΠϯετʔϧ͢Δ
    w ֦ுػೳ͔Βʮ1ZSJHIUʯΛΠϯετʔϧ͢Δ
    w ϓϩδΣΫτͷϧʔτσΟϨΫτϦʹQZSJHIUDPOpHKTPOΛ
    ࡞Γ ͦ͜ʹઃఆΛॻ͘ ৄࡉ͸࣍ϖʔδ

    w ίϚϯυϥΠϯπʔϧͰ࢖͏৔߹͸ผ్OQNͰΠϯετʔϧ
    ͢Δඞཁ͕͋Δ
    w DPOpHΛ༻ҙ͢Δ͜ͱΛ஌Βͣ

    Ұ౓࠳ંͨ͜͠ͱ͕͋Δࢲ

    ༻ҙ͠ͳ͍ͱQJQͰΠϯετʔϧ͢Δͨ͠

    ΋ͷ͕ೝࣝ͞Εͳ͍

    View full-size slide

  8. 1ZSJHIUͷઃఆʹ͍ͭͯ
    Ұ൪؆୯ͳDPOpH WFOW͕ू·͍ͬͯΔ

    σΟϨΫτϦͷࢦఆͱ

    ࢖͏Ծ૝؀ڥ໊ͷΈ
    ૬ରύε͸࢖͑ͳ͍
    ͓खܰʹ࢝ΊΔDPOpH ؂ࢹԼ͔Β֎͍ͨ͠΍ͭ
    ͸JHOPSFΛ࢖͏
    ΄ͱΜͲ؂ࢹͨ͘͠ͳ͘
    ͯ؂ࢹ͍ͨ͠΍͕ͭগ਺
    ͷͱ͖͸JODMVEFΛ࢖͏

    View full-size slide