The bright pyridone for providing Formulas I of this Hair is He Dan Miscellaneous pyridinone compounds inhibit Btk kinases , And to control Treatment immune conditions for example by the inflammation of Btk kinases Jie Guide with what including Qi Li Body Iso Agencies Body, mutual Change Iso Agencies Body He Drug Learn Ke receives Which with what. This Hair Ming Gong Open using compound of formula I Body outside, original position He Body Inner ?Broken and control this Class illness Huo Xiang Off in Treatment lactation Move object Fine born of the same parents pathology Like state method.本發明提供式I的吡啶酮和氮雜吡啶酮化合物,包括其立體異構體、互變異構體和藥學可接受的鹽,其用於抑制Btk激酶,並用於治療免疫性病症例如由Btk激酶介導的炎症。本發明公開使用式I化合物在體外、原位和體內診斷和治療哺乳動物細胞中的此類病症或相關的病理狀態的方法。